Hi
i saw that the ReportViewer has a Export method a ExportCompleted event. Is there a way to export from code behind and save the file on client ?? And once the Export is completed (using the ExportCompleted event) open the pdf file in browser ??
Hi jadugar!
With the latest CTP, the Export method only supports exporting the currently opened report on the Viewer. However, for V1 you will also have the ability to programmatically export other reports as well.
If you are saving the exported report to the local filesystem, you will not be able to automatically open it since in Silverlight 4 the only way to open files is via the OpenFileDialog class. In WPF, you can open the exported report by using the following code:
System.Diagnostics.Process.Start(filename);
Regards,
Héctor