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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem Exporting Webi report to Disk as pdf

Status
Not open for further replies.

john121

Programmer
Oct 18, 2007
9
GB
Hi

I am trying to save a webi report from infostore to a disk (ex:c\crystalreport.pdf), using the following statement


Code:
eportDocument crReportDocument = new ReportDocument();
crReportDocument.Load(source_path_to_report);

//Export the report to disk.
crReportDocument.ExportToDisk(ExportFormatType.PortableDocFormat, destination_path);

It works fine, if i give the physical path, but how can i get it working without hard coding the path, as i don't know where the reports existing.

Hope some one can help me to solve this.

I am trying the above one in csharp, so any help will be very much appreciated.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top