SSRS 2008 Report.GetDefaultPageSettings returns incorrect information
        Posted  
        
            by jhale
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by jhale
        
        
        
        Published on 2010-06-17T14:09:56Z
        Indexed on 
            2010/06/17
            14:13 UTC
        
        
        Read the original article
        Hit count: 226
        
ssrs-2008
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.
© Stack Overflow or respective owner