Hi ,
We have written below code to export the crystal report data to .RTF format.
ReportDocument rdoc = new ReportDocument(); strCmd = "select * from ff_cca_notes where ff_issue_id = " + sIssueID; da = null; da = new AseDataAdapter(strCmd, conn); da.Fill(ds.ff_cca_notes); rdoc.Load(Server.MapPath("OrderDetails.rpt")); rdoc.SetDataSource(ds); rdoc.ExportToDisk(ExportFormatType.RichText, "c:\test"+ @"\" 100135.rtf");
in the above ,when I debug the code,i can able to export the report data to RF T format.
But when I publish the code and try to export the data ,we are getting below error .
An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace:
|