Click here to Skip to main content
15,894,343 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i want to create a crystal report.
on a form there are some controls 2 textboxes ,1 button , 1 crystal report viewer.using only these controls i want different reports to b generated dynamically in same crystal report viewer on selection of date-range.(report for a perticular month etc)
if i enter in textboxes date 'from' and 'to' dates then report should b created for that date-range like that
plz help me.
Posted
Updated 2-Aug-10 2:09am
v2

1 solution

Internally, you are going to show data in your report based on the dataset fetched from database using some query.

Thus, best place to handle it out would be at Query level. Based on the number of parameters or type of parameters, have different queries and pass on the data fetched to the report.

Or, in case you want different reports than you can do that too. Have a look at this:
Dynamic Crystal Report with C#[^]
 
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