Friday, February 24, 2012

Custom Code

Hi,
In Report Properties - Code Tab- i have written custom code, i want to get
the report parameter value in custom code, so i have written as follows:
ie assigning to a variable.
strValue=Parameters!UserID.Value
Is this code is correct to get the parameter value in custom code or i need
to make any other changes.
A quick response is appriciated.
Thanks in advance,
AnithaParameters!UserID.Value is the correct syntax.
Are you getting any errors with the above code?
"Anitha Naidu" wrote:
> Hi,
> In Report Properties - Code Tab- i have written custom code, i want to get
> the report parameter value in custom code, so i have written as follows:
> ie assigning to a variable.
> strValue=Parameters!UserID.Value
> Is this code is correct to get the parameter value in custom code or i need
> to make any other changes.
> A quick response is appriciated.
> Thanks in advance,
> Anitha|||Hi Kiran,
Thank you for the reply, i got error as "error in line 1" for
Parameters!UserID.Value, so i have used Report.Parameters!UserID.Value.
Now its working fine.
Regards,
Anitha
"Kiran" wrote:
> Parameters!UserID.Value is the correct syntax.
> Are you getting any errors with the above code?
> "Anitha Naidu" wrote:
> > Hi,
> >
> > In Report Properties - Code Tab- i have written custom code, i want to get
> > the report parameter value in custom code, so i have written as follows:
> > ie assigning to a variable.
> > strValue=Parameters!UserID.Value
> > Is this code is correct to get the parameter value in custom code or i need
> > to make any other changes.
> >
> > A quick response is appriciated.
> >
> > Thanks in advance,
> > Anitha

No comments:

Post a Comment