Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CrystalReportViewer Weird Display?

Status
Not open for further replies.

cupcakesrule

Programmer
Feb 6, 2007
35
US
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:
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>
 
Nevermind I got it I forgot the Form tags gosh. Is there anyway to link the report to a datatable or dataview that I have created within my webpage?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top