sheridan101
Programmer
I wrote a report viewer in C# and am using Crystal Reports.NET. What is the best way to pass a report start datetime and a report end datetime from a custom C# prompt/requestor to corresponding start/end date parameters in the report? I have tried several different things and keep running into brick walls. I am probably close but in each case am missing that last little piece of info that will make it work. The information I have on this is sketchy at best. Any help would be appreciated!!
Ideally, I would like to pass the dates into a date range datetimepicker in the report. One wall I ran into is I can't find any way to set the CR parameter's MinDate/MaxDate values from the viewer program.
I am using custom prompts because the defaults built-in to the datetimepicker in the report parameter is crap. None of the "defaults" fit because I need a custom built date for the prompt default values that can change every time the report is run. Specifically, I need to set the date part to today, but the time to a fixed time. The CR defaults has no provision for this, and there appears to be no way to change a ?parameter within the report... these parameter fields appear to be read only from within the crystal reports code itself.
Ideally, I would like to pass the dates into a date range datetimepicker in the report. One wall I ran into is I can't find any way to set the CR parameter's MinDate/MaxDate values from the viewer program.
I am using custom prompts because the defaults built-in to the datetimepicker in the report parameter is crap. None of the "defaults" fit because I need a custom built date for the prompt default values that can change every time the report is run. Specifically, I need to set the date part to today, but the time to a fixed time. The CR defaults has no provision for this, and there appears to be no way to change a ?parameter within the report... these parameter fields appear to be read only from within the crystal reports code itself.