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
650
UltraGridExcelExporter.Export - can it open up the file?
posted

Is it possible that calling Export could open up Excel with the results of the export? I can export and have it save to a file, but am wondering if it's possible to launch Excel with the results of the export without saving to disk.

Parents
No Data
Reply
  • 4960
    posted

    If you save it to file (it could be a temporary file), for instance "spreadsheet.xls" in the app's executing bin folder (best practice would be somewhere in the user's profile like Application Data, etc., but I'm just saying app executing bin here for example's sake), then you can call

        Process.Start( "spreadsheet.xls" )

    and if the user has Microsoft Excel installed the command shell will launch it with your exported file opened by default.

Children
No Data