cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

vb.net Parameter Default Value

Former Member
0 Likes
1,422

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

View Entire Topic
0 Likes

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

Former Member
0 Likes

Hi Don,

Looking through the code I think this is the line that pulls in the value : getDiscreteValues(paramfield). Is this correct? Do you know if this pulls in the current values from a previous run of the report or the default value?