Dynamic Crystal Report Generation
Most of my efforts this week has been dedicated to generate crystal reports dynamically or "codically". Though I have not been 100% successful in this endeavor, I saw a few pieces of gold here and there. The following tests have been performed using Visual Studio Beta 2005 and whatever version of Crystal Reports it came with!
Removing/Editing an existing object from the report
In order to remove an existsing report object from a report (testReport), the following code can be used as an example:
testReport.ReportDefinition.Sections["Section3"].Height = 600;
testReport.ReportDefinition.Sections["Section3"].ReportObjects[0].ObjectFormat.EnableSuppress = true;
//The report object as well as section can be addressed using the integer subscript (as done in ReportObjects[0]) or its name (as done in Sections["Section3"])
1 Comments:
Dynamic Crystal Report is possible in vb.net .
http://vb.net-informations.com/crystal-report/dynamic_crystal_report_from_sql_query_string.htm
put some more idea and make your report.
Post a Comment
<< Home