cupcakesrule
Programmer
I am trying to display a crystal report within my web form, and the page is not erroring out but I am getting a weird display. The Viewer frame is really wide and really short with scroll bars, it has a cream colored background, and the only content in the frame are the words
CrystalReportViewer - CrystalReportViewer1
here is the code I used:
CrystalReportViewer - CrystalReportViewer1
here is the code I used:
Code:
<%@ Page Language="c#" Debug="true"%>
<%@ Register TagPrefix="cr" Namespace="CrystalDecisions.Web" Assembly="CrystalDecisions.Web, Version=9.1.3300.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title></title>
<meta name="GENERATOR" content="Microsoft Visual Studio.NET 7.0">
<meta name="vs_targetSchema" content="[URL unfurl="true"]http://schemas.microsoft.com/intellisense/ie5">[/URL]
<script runat="server">
void Page_Load(Object sender, EventArgs e)
{
DataBind();
}
</script>
</head>
<body>
<CR:CrystalReportViewer
id="CrystalReportViewer1"
runat="server"
Width="350px" Height="350px"
ReportSource='<%# Server.MapPath(@"datas\Report1.rpt") %>'>
</CR:CrystalReportViewer>
</body>
</html>