Click here to Skip to main content
15,898,980 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

Till now I used to design RDLC file before and assigned typed dataset table columns.Report processing mode is local. But now my stored procedure returns different columns based on condition i.e columns are not fixed every time. Now I need to add that columns to typed dataset and dataset is assigned to RDLC file. So dataset and RDLC files are create dynamically based on stored procedure result set columns.

can anyone please tell me how to do this?

Thanks in Advance.

Regards,

N.SRIRAM
Posted

Hi Sriram,
Are you there?

This is something called dynamic reports, you can read my blog post:

Dynamic Reports in SQL Server Reporting Services 2008


Hope this helps.
 
Share this answer
 
Comments
SRIRAM 2 10-Jan-11 2:51am    
Thank you sir. But the problem is I can't understand your way.I am new to reporting services.

can you explain in detail?

Regards,

N.SRIRAM
rihdus 10-Jan-11 4:01am    
Hi,

Please read from here: http://msdn.microsoft.com/en-us/library/ms152787.aspx

Regards,
Sudhir
Use Expressions in reports to control content and report appearance.Expressions are written in VB.

Take a look at the example

=IIF(Fields!Department.Value = "Development", "EmployeeReport", Nothing)


What this does is : Test the value of the Department field and return either a subreport name or a null (Nothing in Visual Basic).

Like this,based on conditions in expressions,you can assign the dataset or the columns to report .


Hope you get an idea with this article:

http://msdn.microsoft.com/en-us/library/ms157328.aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900