Call export in code without show report
Call export in code without show report
Hi,
Can we call export report to Excel without print preview to show (rending) report? Because our report have a lot of data (the time to query data not show long) I debug in code and saw that the system is hang when report is rending to show on screen. So I'd like to export directly to excel without view and show on screen.
Thanks
Han
Can we call export report to Excel without print preview to show (rending) report? Because our report have a lot of data (the time to query data not show long) I debug in code and saw that the system is hang when report is rending to show on screen. So I'd like to export directly to excel without view and show on screen.
Thanks
Han
Re: Call export in code without show report
Hello,
Try to use the following code:
Thank you.
Try to use the following code:
Code: Select all
report.Render();
report.ExportDocument();
Re: Call export in code without show report
Thanks, I tried that code but it was export to Server, the export file is exported to server instead client machine.
Han
Han
Re: Call export in code without show report
Hello.
Thank you
Unfortunately, due to Silverlight restrictions it's impossible to access to file system without dialog window.hanntd wrote:Thanks, I tried that code but it was export to Server, the export file is exported to server instead client machine.
Thank you
Re: Call export in code without show report
I have a solution for my issue, first I export to server and then download to client by using stream downloading.
Thanks for your help
Han
Thanks for your help
Han
Re: Call export in code without show report
Hello,
Ok.
Let us know if you need any additional help.
Ok.
Let us know if you need any additional help.