title: ASP.NET - Crystal Report Viewer Print Button Not Working In ASP.NET
body: <p>I am using visual studio 2008 and i am having issue with crystal reports.
  When i clicks on print button it takes me to the popup with no page found. Popup url is</p>
  
  <p><a href="http://localhost/aspnet_client/System_Web/2_0_50727/CrystalReportWebFormViewer4/html/crystalexportdialog.htm" rel="nofollow">http://localhost/aspnet_client/System_Web/2_0_50727/CrystalReportWebFormViewer4/html/crystalexportdialog.htm</a></p>
  
  <p>I have checked that crystalexportdialog.htm file exists on this path: C:\Windows\Microsoft.NET\Framework\v2.0.50727\ASP.NETClientFiles\CrystalReportWebFormViewer4\html\crystalexportdialog.htm</p>
  
  <p>This is my code on page_load event.</p>
  
  <pre><code>    ReportDocument rptDoc = new ReportDocument();
  
      ReportProjectProperties ds = new ReportProjectProperties();// .xsd file name
      DataTable dt = DbUtility.GetProjectWorksheets(15);
      ds.Tables[0].Merge(dt);
      // Your .rpt file path will be below
      rptDoc.Load(Server.MapPath("../Reports/report1.rpt"));
      //set dataset to the report viewer.
      rptDoc.SetDataSource(ds);
      CrystalReportViewer1.ReportSource = rptDoc;
  </code></pre>
  
  <p>Thanks.</p>