Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1930
Export from code-behind
posted

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 ??

Parents
No Data
Reply
  • 1125
    posted

    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

     

Children
No Data