Hi Holly, this will do what you've described: Process process = new Process(); process.StartInfo.FileName = @"C:\spreadsheet.xls"; process.StartInfo.UseShellExecute = true; process.Start();
On Thu, 12 Jun 2008 16:47:51 +0100, Holly Styles <[EMAIL PROTECTED]> wrote: >Hi There, > >I'm wondering if anyone has an opinion on the best way to appraoch this. >I am using SpreadsheetGear to create an xls file from a windows forms >application. >I have looked at office interop for opening this file in Excel once it >has been written to disk. But I'm not comfortable with that. > >I would rather somehow ask windows to just open the file using the >default association in a 'fire and forget' manner. Is there a good way >to do this using the Process namespace somehow? or should I wrapper some >call to the win32 API ? =================================== This list is hosted by DevelopMentor® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com