Can we change printer settings at run time in SSRS 2008?
For example, if a report is on Legal size paper but I want to print on A4 Landscape or Legal at run time, depending on a parameter which is passed in.
printingreporting-servicessettings
Can we change printer settings at run time in SSRS 2008?
For example, if a report is on Legal size paper but I want to print on A4 Landscape or Legal at run time, depending on a parameter which is passed in.
Best Solution
The answer is that NO, you cannot unless you write your own solution. The report viewer control does not support this. Your options are either to create a custom printing solution, OR to manipulate your RDLC file to modify the settings manually.
If you decide to modify the RDLC file on the fly, you need to load the RDLC file into memory, modify the XML file to specify the new page settings, then reload the RDLC file in the report viewer.
If you decide to do manual printing, here is some VB.NET code to help you get started:
Hopefully this helps.