I am writing a report, which exports nicely to PDF. However, it does not export to a Word document (.doc) properly.
(Margins get ignored in the header area, which messes up pages breaks, footer text is missing, etc.)
To work around this, I want to disable, enable and/or re-size a few items in my report depending on if it is rendered as a PDF or a Word Document.
Is there any way to set an items properties, based on how a report is rendered?
I think the only solution to your problem is this: in your report you can access Globals.ReportServerUrl. When calling a report you can specify its render type (and even other stuff like dimensions etc) in the URL. All you need to do is write some Custom Code to extract the render type from the URL and you’re done.
For more info on all the possible URL parameters go here: http://technet.microsoft.com/en-us/library/ms154040.aspx