on ‎2020 Oct 06 7:16 PM
Hi,
I have an application coded in vb.net that opens a crystal report in the crystal report viewer. I understand how to set parameter values in my vb.net code, but I also want to be able to access the default value of the parameter that is already assigned within the crystal report. Does anyone know how I access the default value of the parameter?
Thanks
Request clarification before answering.
Hi Chris,
Build the project and test it and see what the various properties of the report it gets.
It will only get what is saved in the Report, what changes/updates you make in code will not return, you'll have to keep track of them yourself.
Don
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As I mentioned, have a look at this project, it has routines on how to get the info:
Have a look at this test app: https://blogs.sap.com/2016/02/17/how-to-parameters-in-crystal-reports-for-visual-studio-net/
There are sites out there that will convert C# to VB... easy enough to do yourself though.
Don
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, WIKI page tells you what versions support what versions...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ah, SP 13 is n ot supported in VS 2019, you need the latest SP 19 from here:
https://wiki.scn.sap.com/wiki/display/BOBJ/Crystal+Reports%2C+Developer+for+Visual+Studio+Downloads
Uninstall first, then install just the EXE, don't install the MSI's nat required on your DEV PC.
Wiki above has all of the latest info.
Don
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Chris,
What version of the sDK are you using?
Have a look at this test app: https://blogs.sap.com/2016/02/17/how-to-parameters-in-crystal-reports-for-visual-studio-net/
It's C# but in the drop down list box there is a routine to get parameter values.
Don
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.