Sunday, March 25, 2012

Custome code & Parameters

Hi
Can someone please tell me why =Code.MyConversion (Globals!ReportFolder)
does not work but =Code.MyConversion ("123456789") does work. '
the argument is of type string
Thanks
FrancoisIf you're viewing the report in preview, Globals!ReportFolder will return
nothing, so you don't see any output. Deploy the report and view it in
report manager at which point Globals!ReportFolder will return the report
folder name (excluding URL), so your code should then work.
--
Ravi Mumulla (Microsoft)
SQL Server Reporting Services
This posting is provided "AS IS" with no warranties, and confers no rights.
"Francois" <Francois@.discussions.microsoft.com> wrote in message
news:5E4CEF9E-6C92-47FC-AC9E-DF4BFA85FC2E@.microsoft.com...
> Hi
> Can someone please tell me why =Code.MyConversion (Globals!ReportFolder)
> does not work but =Code.MyConversion ("123456789") does work. '
> the argument is of type string
> Thanks
> Francois|||Should Globals!ReportFolder be Globals!ReportFolder.Value?
"Ravi Mumulla (Microsoft)" <ravimu@.online.microsoft.com> wrote in message
news:OmHN$CWpEHA.2612@.TK2MSFTNGP15.phx.gbl...
> If you're viewing the report in preview, Globals!ReportFolder will return
> nothing, so you don't see any output. Deploy the report and view it in
> report manager at which point Globals!ReportFolder will return the report
> folder name (excluding URL), so your code should then work.
> --
> Ravi Mumulla (Microsoft)
> SQL Server Reporting Services
> This posting is provided "AS IS" with no warranties, and confers no
rights.
> "Francois" <Francois@.discussions.microsoft.com> wrote in message
> news:5E4CEF9E-6C92-47FC-AC9E-DF4BFA85FC2E@.microsoft.com...
> > Hi
> >
> > Can someone please tell me why =Code.MyConversion (Globals!ReportFolder)
> > does not work but =Code.MyConversion ("123456789") does work. '
> >
> > the argument is of type string
> >
> > Thanks
> >
> > Francois
>sql

No comments:

Post a Comment