locked
SSRS ReportViewer control default to A4 on some printer RRS feed

  • Question

  •    On some printer, even if I set the report properties to 8.5 X 11 default to A4. I noticed the conversion bug and even by specifying the page size in inches is doing the problem. I am developping with Visual Studio 2005 (French version) and with .Net framework 2 SP1 on Win XP sp2. My App is deployed on a W2K terminal server.

    Thursday, May 15, 2008 2:23 PM

All replies

  • Mr Denis are you using the report viewer if you Sre using the report viewer control follow the steps

    1. Set your report properties lay out to PageWidth - 11.69in  and PageHeight to 8.27in ( for landscape ) if you want for the portrait just interchange height and width

    2. And in the Vb file just before refresh property of report viewer add the following
    Me.rptAtAGlance.ServerReport.GetDefaultPageSettings() ( this is for the server report if you want it for local report change it to local report)

    this works fine for me

    thanks

    1       With Me.rptViewer1  
    2                 .ShowBackButton = True 
    3                 .ShowContextMenu = True 
    4                 .ShowExportButton = True 
    5                 .ShowPrintButton = True 
    6                 .ShowRefreshButton = True 
    7                 .ShowStopButton = True 
    8                 .ShowToolBar = True 
    9                 .ShowZoomControl = True 
    10  
    11             End With  
    12  
    13 // Set the report Url, report path, and the parameters  
    14  
    15            With Me.rptViewer1  
    16

                      .ServerReport.GetDefaultPageSettings()  

    17                   .RefreshReport()  
    18     
    19             End With    
    20  
    21  
    22  
    • Proposed as answer by firdos shaik Friday, June 6, 2008 5:38 PM
    • Edited by firdos shaik Friday, June 6, 2008 5:57 PM Added Code
    Friday, June 6, 2008 5:37 PM