ExportToHttpResponse method

Posted by Laghaterohan under ASP.NET on 4/22/2011 | Points: 10 | Views : 4249 | Status : [Member] | Replies : 3
Hello,
Reports.CrystalReports.DividendWarrant myReport  = new Reports.CrystalReports.abc();
myReport.SetDataSource(objQueryProcess.ResultSet); // THIS IS CORRECT
CrystalReportViewer1.ReportSource = myReport; // THIS IS CORRECT
Page.Title = "My Report";
myReport .ExportToDisk(ExportFormatType.PortableDocFormat, @"D:\Rohanl\MyReport.pdf"); //DOES NOT WORK... I DO NOT GET ANY PROMPT TO SAVE THE REPORT..WHY PLEASE HELP...
MYrEPORT.ExportToHttpResponse(ExportFormatType.PortableDocFormat, Response, true, "MY REPORT "); /// THIS ALSO FAILS.....WHY IS THIS HAPPENING?? I DO NOT GET ANY PROMPT TO SAVE THE REPORT


PLEASE HELP....WHT CAN BE THE REASON??

Best Regards,
Rohan Laghate



Responses

Posted by: Umeshdwivedi on: 4/23/2011 [Member] Starter | Points: 25

Up
0
Down
hello
ReportDocument reportDocument = new ReportDocument();

reportDocument.Load(@"Report.rpt");
reportDocument.ExportToHttpResponse(ExportFormatType.PortableDocFormat, Response, false, "");
you can see this link find same articals
http://msdn.microsoft.com/en-us/library/ms225961(v=vs.80).aspx


Latest Technology Trainer
And Part time software consultant

Laghaterohan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Laghaterohan on: 4/24/2011 [Member] Starter | Points: 25

Up
0
Down
nah...its not working...:(

Best Regards,
Rohan Laghate

Laghaterohan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Umeshdwivedi on: 4/25/2011 [Member] Starter | Points: 25

Up
0
Down
hello
just waite i m checking bugs and reply you

Latest Technology Trainer
And Part time software consultant

Laghaterohan, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response