Groups | Blog | Home
all groups > sql server reporting services > march 2005 >

sql server reporting services : detecting renderer .


klumsy NO[at]SPAM xtra.co.nz
3/3/2005 2:37:42 PM
basically i only want a document map when rendering to PDF
however if there are any labels, then the HTML will show the
documentmap, SO
i want to write expressions for hte grouping labels that show nothing
unless it is rendering to PDF, but how do you detect the renderer from
expression code?

Robert Bruckner [MSFT]
3/3/2005 11:11:40 PM
It is not possible to detect the renderer from an expression inside the
report.
Just consider the cases where a report is rendered from an execution or a
history snapshot. In both cases the report does not get reprocessed, but
just rendered from the snapshot. Snapshots contain the processed report
items in an output format independent format. Hence, during executing
expressions the renderer can't be determined.

There are some ways to achieve what you want, but they all involve
additional work (e.g. write your own application which requests different
reports depending on output format)


-- Robert
This posting is provided "AS IS" with no warranties, and confers no rights.



[quoted text, click to view]

AddThis Social Bookmark Button