Hi,
Some times when working with crystal report viewer you do not want to show the report to user in raw format but instead you want to pass on the report in PDF or other format without requiring user to do extra click. This can be done easily in Dot Net with the following code.
/P>
MyReport report = new/SPAN> MyReport(); /P>
DataSet ds = GetData(); /P>
report.SetDataSource(ds); /P>
report.ExportToHttpResponse(ExportFormatType.PortableDocFormat, Response, false, "ExportedReport");/P>
/o:p>/P>
If you want you