cancel
Showing results for 
Search instead for 
Did you mean: 

Pass optional parameters to CrystalReportViewer.ParameterFieldInfo

Former Member
0 Kudos

Hi,

I have a report with three optional parameters. I want to provide the CrystalReportViewer with information so that it does *not* show the parameter dialog (or rather, does not request any optional parameters).

I tried just adding all parameters to the ParameterFieldInfo collection, but it prompts the missing "CurrentValues" despite the fact that the parameters are optional. What do I need to add to the ParameterFieldInfo collection so that it does not ask for optional parameters of my choice?

Any ideas?

Regards,

Florian

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

The following KBs came up on the search term 'parameter optional crystal net' (top right corner):

KB 1430358 - How to handle optional parameters when using Crystal Reports in Visual Studio .NET

KB - 1244475 - Error: Missing parameter value when exporting a Crystal Report with optional parameters us...

Please see if these help.

- Ludek

Follow us on Twitter

Got Enhancement ideas? Try the SAP Idea Place

Share Your Knowledge in SCN Topic Spaces

Former Member
0 Kudos

Thanks, the first link did indeed solve my problem. Google didn't bring that up unfortunately (but it does now thanks to this topic).

former_member183750
Active Contributor
0 Kudos

Hello Florian

Darn Google

Remember you can also try the search box in the top right of this web page. It's often not as good as Google, but this time it did the trick.

Happy coding,

- Ludek

Answers (0)