Making Dataset in Website giving problem
When I try to make Crystal Report through Dataset,it makes it in new project but it don't make it in website. What can be the problem
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Dhaval PatelPosted Oct 17, 2011, 8:06 AM
Are you add in your aspx page
<%@ Register Assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"
Namespace="CrystalDecisions.Web" TagPrefix="CR" %>
or in web.config
and declare crystal report control
write code in page_load
protected void Page_Load(object sender, EventArgs e)
{
ReportDocument crystalReport = new ReportDocument();
crystalReport.Load(Server.MapPath("CrystalReport.rpt"));
crystalReport.SetDatabaseLogon
("amit", "password", @"AMIT\SQLEXPRESS", "TestDB");
CrystalReportViewer1.ReportSource = crystalReport;
}
Monika AroraPosted Oct 17, 2011, 3:10 AM
Mamta MPosted Oct 17, 2011, 12:39 AM