Click here to Skip to main content
15,887,822 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am using reporting services in asp.net 2005 and 2010 for show my reports. But now a days i am

facing a problem. I need to generate columns as dynamically. i will give an example below.

i need to generate a salary slip of all the employee, in this case first column is employee registration number, second is employee name, third is employee designation and department, these columns are fixed. the remaining are allowance like basic, hra etc and deductions like PF, ESI etc. i cant able to fix these allowance and deductions, this are varying for each month.

So is it any solution for generate these columns as dynamic in reporting services.

Those columns as visible. values are calculated by stored procedure. that Stored procedure return a table. actually i need to display exactly the table return by stored procedure. the thing is that the column of the table return by the Stored procedure is dynamic.
Posted
Updated 11-Jan-12 18:53pm
v2
Comments
nainakarri 12-Jan-12 0:30am    
Do you mean making visible/invisible or want calculated values in the columns?
Elk Cloner 12-Jan-12 0:38am    
Those columns as visible. values are calculated by stored procedure. that Stored procedure return a table. actually i need to display the table return by stored procedure exactly. the thing is that the column of the table return by the Stored procedure is dynamic.
nainakarri 12-Jan-12 1:07am    
Can you share the procedure..............? Why cant you create a static table from the procedure with dynamic values?
Elk Cloner 12-Jan-12 1:15am    
not dynamic values, dynamic column. I will give an example, Festival Advance is a Allowance, but it will give only for special months. Some of my Client Use the Name Festival Advance, Some of the others use Festival allowance. So this is only for one column, like this one pay report on my clients have lot of dynamic column with names. currently i am using HTML report. it is so simple. but they need this report using reporting services. Actually i need to display the report exactly as table return by Stored procedure. The table Column name need to display as report column name and values in each row as same as the table too.
nainakarri 12-Jan-12 1:32am    
Column headers will be static in ssrs. May be you can create the header and make visible/invisible based on the column name/value.

1 solution

You may use the auto generate column option in the gridview and apply intelligence in the SQL Query to show the columns dynamically.
 
Share this answer
 
Comments
Elk Cloner 12-Jan-12 1:18am    
is it possible to do in reporting services

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