Hi! I'm trying to pass 2 dates parameters to my report from visual studio .net. And run it clicking a Run button. To do that I defined 2 formulas in my report, one for the initial date and the other for the final date, and then the record selection formula that uses this two formulas.
The intiial date formula is this one: DateTime (2005, 04, 18, 00, 00, 00), for example, for 18/04/2005
and the final is a similar one with the final date for the interval.
The record selection formula is this one:
({Orders.Order Date} > {@initial}) And ({Orders.Order Date}< {@final})
And this works!! I launch the report from vs.net 2003 and the selection formulas work fine.
I did this because now I need to add two DateTimePickers to the form, to get the initial and final dates values from the user.
I only have to add a Button to run the report and the 2 date pickers and this method in the Button Click:
But I get the errror message "Type CustomReportClass is not defined"
It seems an easy way to pass parameters, just defininig 2 formulas, and the code for the Run button, but there's something missing with this CustomReportClass, anyone did something like this that works?