title: display crystal report in asp.net page
body: <p>I have built a Crystal Report in VS2008 for an asp.net c# site.  I can run the rpt file and view the report.</p>
  
  <p>I can't get it do display in the web page.   </p>
  
  <p>I've never used Crystal before so I may have this totally wrong.  I dragged a CrystalReportViewer and CrystalReportSource onto the designer and used the menu to configure the source and report name.</p>
  
  <pre><code>&lt;%@ Page Language="C#" MasterPageFile="~/TimeTracker/MasterPage.master" AutoEventWireup="true" CodeFile="EmployeeReport.aspx.cs" Inherits="TimeTracker_EmployeeReport" Title="Untitled Page" %&gt;
  
  &lt;%@ Register Assembly="CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
      Namespace="CrystalDecisions.Web" TagPrefix="CR" %&gt;
  
  
  
  &lt;asp:Content ID="Content1" ContentPlaceHolderID="maincontent" Runat="Server"&gt;
  
  
      &lt;CR:CrystalReportViewer 
          ID="CrystalReportViewer1" 
          runat="server" 
          AutoDataBind="True" 
          Height="1200px" ReportSourceID="CrystalReportSource1" 
          Width="1000px" HasRefreshButton="True" /&gt;
  
  
  
  
      &lt;CR:CrystalReportSource ID="CrystalReportSource1" runat="server"&gt;
          &lt;Report FileName="EmployeeHours.rpt"&gt;
          &lt;/Report&gt;
      &lt;/CR:CrystalReportSource&gt;
  
  
  
  
  &lt;/asp:Content&gt;
  </code></pre>