on 06-25-2013 1:44 PM
Hi,
I have problem when trying to set parameter values from the code. When I start the report without setting parameter values but leave the report with parameters set already in report designer the report opens correctly. When I try to change the CurrentValues to new ones from code there is immediately FormulaException and an error saying that the field name is not known am.
Record Formula is
{TDATE} >= {?FromDate} and {TDATE} < {?ToDate}+1
and here is how I'm setting the parameters in code:
rd.SetParameterValue("FromDate", strFromDate);
rd.SetParameterValue("ToDate", strToDate);
My version of CrystalDecisions.CrystalReports.Engine is 13.0.2000.
I tryed different things and also read in several forums but nothing helped.
I will appriciate any advice.
Thank you.
See if KBA "1214110 - How to pass a Date/Time parameter to a report at runtime using VB .NET" will help:
Also, use the search string 'crystal net parameter date' in the search box at the top right corner for more help.
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter
Got Enhancement ideas? Try the SAP Idea Place
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.