SAP Knowledge Base Article - Public

1544683 - CRVS2010 Web viewer extends outside the right side boundary of VS2010 Master Page


  • CRVS2010 DHTML viewer extends outside the right edge of VS2010 Master Page

master page viewer2.jpg


Reproducing the Issue

  • Create a new web project in VS2010
  • Add the CR viewer to the Master Page
  • Add one line of code so that a report is displayed in the viewer (use saved data report):

CrystalReportViewer1.ReportSource = <path to report>

  • Run the project
  • The viewer will spill over the right side boundary of the Master Page


  • The master page shown by default when creating a new web site project uses the .page class in a style sheet
  • The width in the @page css element is set to a value (960 px) which is smaller than the default width of the Crystal Reports viewer


  • Do not allow the viewer to AutoSize
  • Modify the style sheet width definition
  • Use tables


KBA , BI-DEV-NET , BI Software Development Kits (SDKs) - .NET or Other , Problem


SAP Crystal Reports, developer version for Microsoft Visual Studio