Open dataclear opened 5 years ago
I use dates all of the time as parameters.
Make sure that the names used for the parameters in crystal match what you are passing into the parameters. Also, I've never surrounded my dates with ( ), that could be part of your problem too.
Mine typically look like "StartDate:20180901" or "@StartDate:20180901"
Launching the executable with the arguments as follows:
CrystalReportsNinja.exe -F "TestRep.rpt" -O "report-1101.pdf" -E "pdf" -l -a "StartDate:(2018-09-01)" -a "EndDate:(2018-09-02)"
Gives me the exception error:
I've tried several formats for the dates; "YYYYMMDD", "DDMMYYYY", "DD/MM/YY" to no avail. Changing the parameter types from Date to String removes the error.
Does this mean that CRN supports only string parameters?