Quantcast
Channel: Crystal Reports
Viewing all articles
Browse latest Browse all 1507

Crystal Report Deployment On Hosting Server (Not on IIS)

$
0
0

I have created a web application containing two crystal reports. 

this crystal report works correctly on local host and on IIS but it does not work on the Hosting Server.

below is my code for binding data to crystal report. it gives error as  " Load Report Failed." Report work fine on local host and on IIS

I am using visual studio 2008 (3.5)and Crystal Report Version=10.5.3700.0

 DateTime startdate = objSubscriberBl.getddmmyydatestring(txtFromDate.Text);
            DateTime Enddate = objSubscriberBl.getddmmyydatestring(txtToDate.Text);
            DateTime LabelDate = objSubscriberBl.GetCurrentIndianDate();
            LabelDate = objSubscriberBl.getddmmyydatestring("03/" + LabelDate.Month + "/" + LabelDate.Year);
            ReportDocument reportdocument_New = new ReportDocument();
            reportdocument_New.Load(Server.MapPath("~/Operator/MultipleLabelReport.rpt")); //Here i get error
            reportdocument_New.SetDatabaseLogon("UF_DB", "UFDB12345678", "199.189.253.125", "UniqueFeature_All");
            ReportLabelTableAdapters.Single_Report_Label1TableAdapter sda_New = new ReportLabelTableAdapters.Single_Report_Label1TableAdapter();
            ReportLabel.Single_Report_Label1DataTable data_New = new ReportLabel.Single_Report_Label1DataTable();
            int state = Convert.ToInt32(ddlState.SelectedValue);
            int dist = Convert.ToInt32(ddlDistrict.SelectedValue);
            sda_New.Fill(data_New, cblv, state, dist, Category, startdate,Enddate);
            DataTable dt_New = new DataTable();
            dt_New = (DataTable)data_New;
            reportdocument_New.SetDataSource(dt_New);
            CrystalReportViewer1.ReportSource = reportdocument_New;

please help me....


Viewing all articles
Browse latest Browse all 1507

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>