Reporting Services 2008: Is there a way to change the properties of an element, depending on how the report is executed?

I am writing a report that translates well to PDF. However, it is not exported to a Word document (.doc) properly.

(Fields are ignored in the header area, which randomly breaks page breaks, missing footer text, etc.)

To get around this, I want to disable, enable and / or resize several elements in my report, depending on whether it will appear as a PDF or Word Document.

Is there a way to set the properties of elements depending on how the report is rendered?

+3
source share
2 answers

, : Globals.ReportServerUrl. ( , ..) URL-. , , - , URL-, .

URL : http://technet.microsoft.com/en-us/library/ms154040.aspx

+3

, , asp.net. , , (PDF, Excel - , ).

- "RenderType = HTML". , PDF, , , ServerReport.Render() "PDF RenderType, Excel".

// .

Webcontrol / , .., , ( css ). , , - , x, , .

, .

+1

Source: https://habr.com/ru/post/1702804/


All Articles