title: Removing border/background from Crystal Report Viewer in Visual Studio 2008
body: <p>Can someone please explain how to remove the background/borders off an embedded CrystalReportViewer control in Visual Studio 2008.</p>
  
  <p>I'm trying to remove the light gray (below the "Crystal Report" heading) and then the darker gray underneath that. I want to be left with only the white box and the report inside this.</p>
  
  <p>This is the output I'm currently getting:</p>
  
  <p><strong><a href="http://img411.imageshack.us/my.php?image=screenshotml3.jpg" rel="nofollow noreferrer">http://img411.imageshack.us/my.php?image=screenshotml3.jpg</a></strong></p>
  
  <p>The HTML snippet is:</p>
  
  <pre><code>&lt;div&gt;
   &lt;h2&gt;Crystal Report&lt;/h2&gt;
  
      &lt;CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" 
      AutoDataBind="true" DisplayToolbar="False" /&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>The C# code snippet is: </p>
  
  <pre><code>string strReportName = "CrystalReport";
  string strReportPath = Server.MapPath(strReportName + ".rpt");
  ReportDocument rptDocument = new ReportDocument();
  rptDocument.Load(strReportPath);
  CrystalReportViewer1.HasCrystalLogo = false;
  CrystalReportViewer1.HasDrilldownTabs = false;
  CrystalReportViewer1.HasDrillUpButton = false;
  CrystalReportViewer1.HasExportButton = false;
  CrystalReportViewer1.HasGotoPageButton = false;
  CrystalReportViewer1.HasPageNavigationButtons = false;
  CrystalReportViewer1.HasPrintButton = false;
  CrystalReportViewer1.HasRefreshButton = false;
  CrystalReportViewer1.HasSearchButton = false;
  CrystalReportViewer1.HasToggleGroupTreeButton = false;
  CrystalReportViewer1.HasToggleParameterPanelButton = false;
  CrystalReportViewer1.HasZoomFactorList = false;
  CrystalReportViewer1.DisplayToolbar = false;
  CrystalReportViewer1.EnableDrillDown = false;
  CrystalReportViewer1.BestFitPage = true;
  CrystalReportViewer1.ToolPanelView = CrystalDecisions.Web.ToolPanelViewType.None;
  CrystalReportViewer1.BackColor = System.Drawing.Color.Red;
  CrystalReportViewer1.BorderColor = System.Drawing.Color.Green;
  CrystalReportViewer1.CssClass
  CrystalReportViewer1.Height = 200;
  CrystalReportViewer1.Width = 500;
  CrystalReportViewer1.ReportSource = rptDocument;
  </code></pre>