Hi,
I want to save crystal report as PDF when a user view that report..... so on my page load event i created the below code
protected void Page_Load(object sender, EventArgs e)
{
string invoicenumber = "";
invoicenumber = Request.QueryString["invoicenumber"];
ReportDocument reportdocument = new ReportDocument();
reportdocument.Load(Server.MapPath("CrystalReport.rpt"));
reportdocument.SetDatabaseLogon("xxxxxx", "xxxxxxx", "xxxxxxxx", "xxxxxxx");
reportdocument.SetParameterValue("@invoicenumber", invoicenumber);
CrystalReportViewer1.ReportSource = reportdocument;
DataSet dsrep = new DataSet();
GetData(dsrep);
reportdocument.SetDataSource(dsrep);
reportdocument.ExportToDisk(ExportFormatType.PortableDocFormat, "C:\\report.pdf");
}
When executing the last line showing an error Mis ...
Go to the complete details ...