In my last post I outlined how to remove a rendering format from the report manager by modifying the “rsreportserver.config” file. Another useful configuration to the “Render” element is the ability to add rendering formats. Consider a report that renders in the report manager like this:
All is well except when exporting out to .PDF the result is two pages like this:
Page 1
Page 2
The desired rendered format would be to have this report in a landscape format in PDF. Since there is nothing wrong with the current .PDF rendering extension it’s not necessary to modify or remove this, but rather add another .PDF extension with the desired formatting.
The first step is to modify the existing extension to provide it a more descriptive name.
The display name can be modified by adding the “<OverrideNames>” tag and setting the desired name.
**REMEMBER to remove the closing tag from the PDF extension and then add the closing </Extension> after the closing </OverrideNames> tag.
A new .PDF extension can be added by copying the original and adding the desired configuration information, in this case explicitly setting the page height and width:
Once saved then the original name of the .PDF option has been changed and the new option added:
The new rendered report appears on a single landscaped page in .PDF:
This additional rendering option is also available for report subscriptions:
There are a great deal of customization parameters available for report rendering that are outlined on MSDN:
Customizing Rendering Parameters
No comments:
Post a Comment