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!

CrystalDecisions NameSpace

Status
Not open for further replies.

cupcakesrule

Programmer
Feb 6, 2007
35
US
Am I just way off base with importing this name space I can't find any information on it anywhere, but when I put in the following line of code:
Code:
<%@ Import namespace="CrystalDecisions.Shared" %>

I get the following error and I don't know why?

The type or namespace name 'Shared' does not exist in the class or namespace 'CrystalDecisions' (are you missing an assembly reference?)
 
Have you installed Crystal Reports correctly?


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Yes I believe so when I run this code

Code:
<%@ Page Language="c#" Debug="true"%>
<%@ Import Namespace="System.Data.SqlClient" %>
<%@ Import namespace="System.Data" %>
<%@ 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">
		string Connection;
		void Page_Load(Object sender, EventArgs e)
		{
			string SQL;
			SqlConnection Conn;
			Connection = "Server=WEBSERVERW2K; UID=******; PWD=*******; DataBase=Dealer Quoter Dev;";
			Conn = new SqlConnection(Connection);
			Conn.Open();
			DataBind();
			
			SQL = "Select Transactions.*, Users.FullName as UFullName, Location.FullName as LocFullName From Transactions, Users, Location Where Transactions.LocationID = Location.ID AND Transactions.UserID = Users.ID AND Transactions.Disabled=0";
			SqlCommand cmdStores = new SqlCommand (SQL, Conn);
			SqlDataAdapter da = new SqlDataAdapter(cmdStores);
			DataSet ds = new DataSet();
			Conn.Close();
			
			da.Fill(ds, "Transactions");

}			

	</script>
	</head>
	<body>
<Form runat="Server">
	<CR:CrystalReportViewer
		id="CrystalReportViewer1"
		runat="server"
		ReportSource='<%# Server.MapPath(@"datas\Report1.rpt") %>'>
	</CR:CrystalReportViewer>
</Form>
	</body>
</html>

it runs just fine and a report is displayed but when I add the namespace so I can try and link the report to a dataset I get an error
 
What are the minimum requirements I need to use the namespace. Currently I am running Crystal Reports 8.5 and using Visual Studio .Net 2002
 
ca8msm (Programmer)
Have you installed Crystal Reports correctly?

I just reinstalled Crystal Reports on my machine and am still getting the same error. I don't really know where to go from here as I have been googling for days now, does anyone have any ideas?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top