Click here to Skip to main content
15,899,124 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to create crystal reports dynamically in asp.net with c#.net code behind, I don't know the columns i will take it from database at run time, I am getting all data into one data set and then it display in the report.
I have been searching through net since last two days.

if anybody knows the solution..please help me
Posted
Updated 17-Jan-11 1:54am
v3
Comments
Blesson Mathew 17-Jan-11 7:55am    
edited for spelling mistake

 
Share this answer
 
Comments
abdu_karami 17-Jan-11 13:14pm    
k..thanks a lot....i wil check it....
Toniyo Jackson 11-Aug-11 6:32am    
My 5 for this :)
I'm not sure, but I think this is not possible with CR, because you need strong type DataSet definition when you want to create report.

You can solve this using this "hack-like" implementation shown at this pages:
http://vb.net-informations.com/crystal-report/dynamic_crystal_report_from_sql_query_string.htm[^] or http://ymicrosoft.blogspot.com/2009/12/dynamic-crystal-report-using-c.html[^]

This is not right solution, because you need to know how many columns you have in SQL query output, and you need to design your report according to that number.
My suggestion to you is to use another report framework that can satisfy your needs. ;)
 
Share this answer
 
Comments
abdu_karami 17-Jan-11 9:32am    
k..thanks a lot....
hi..
I want to generate dynamic crystal report using sql server.
Dynamic generate row and column size which is store in database column as Percentage.
and Fetch from database and generate that percentage wise crystal report rows and column.
 
Share this answer
 
Comments
Deepu S Nair 25-Mar-15 1:13am    
Please don't post your question as solution.

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