Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Date parameters give exception #32

Open
dataclear opened this issue Sep 20, 2018 · 1 comment
Open

Date parameters give exception #32

dataclear opened this issue Sep 20, 2018 · 1 comment

Comments

@dataclear
Copy link

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:

The types of the parameter field and parameter field current values are not compatible.

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?

@mhertzfeld
Copy link

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants