Dynamic (Runtime) Reports using Crystal Reports and DataSets
-
Hi, I'm trying to create a report using Crystal Reports in VS.NET 2005 without explicitly creating a dataset at design time. Say... my dataset is created at runtime. Its contents depend on what a user specifies - different options, different datasets. What I'm trying to do is to link a blank report (created at design time) with the dataset (created at runtime). Is there anyway to do so? One more problem is if somehow the previous problem is solved, how can i design the report? (since there's no dataset at design time, so nothing to design). Thank you very much. KiT
-
Hi, I'm trying to create a report using Crystal Reports in VS.NET 2005 without explicitly creating a dataset at design time. Say... my dataset is created at runtime. Its contents depend on what a user specifies - different options, different datasets. What I'm trying to do is to link a blank report (created at design time) with the dataset (created at runtime). Is there anyway to do so? One more problem is if somehow the previous problem is solved, how can i design the report? (since there's no dataset at design time, so nothing to design). Thank you very much. KiT
For designing the report you can use an xml as the schema. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/crystlmn/html/crconreportdataaccess.asp As for the first part of your question, if i am not understanding it wrongly, do you mean that that single report will going to show data with different schema base on user selecting the options? I wouldn't suggest you to do that. You should have different reports for each option, and generate the report according to the user's selection.