views:

21

answers:

0

I have an application that retrieves a report from SSRS 2008 and prints it automatically. This works except it always prints the report in Letter/Portrait. This particular report is Letter/Landscape. I have tracked the problem down to when calling the Report.GetDefaultPageSettings() function for this report, it returns PaperSize.Height = 1100 and PaperSize.Width = 850. I even modified the report to a custom size of 11" x 8.4" and it still returns 850 for the width. I cannot get this to print correctly when it renders the image incorrectly based on these settings.

The report prints correctly when accessed by a web browser. It is only when I am trying to automatically print it that the issue appears.