all groups > sql server reporting services > july 2006 >
You're in the

sql server reporting services

group:

Changing labels inside the rdl on runtime


Changing labels inside the rdl on runtime Michael Reukauff
7/12/2006 6:48:10 PM
sql server reporting services:
Hi

Is it possible to change labels inside a report before rendering it? I need
to localize some labels before the report is shown in my
WinForms-Application. I do not want to have one report for each language.
Sometimes I need to change some more things in the report not only labels.
So, how can I get access to all the controls (lists, textboxes, subreports
etc.) of my report?

Thanks
Michael

Re: Changing labels inside the rdl on runtime Steve MunLeeuw
8/3/2006 9:54:41 AM
The approach I took was a custom assembly with a resource file. I park the
language identifier in a property then use an accessor method in the
assembly to fetch the string from the correct resource file. You can pass
in the ReportItems object into a custom assembly or code behind. If the
report has a page with no rows I've had trouble with this and wasn't able to
figure it out.

Thanks,
Steve MunLeeuw


[quoted text, click to view]

AddThis Social Bookmark Button