opening the excel file after the data is imported from the grid

hi, i am using Syncfusion 3.0.1.0 i am able to export the data from a normal gridcontrol to an excelfile. i want this excelfile to open as soon as the data is written to it. how do i do it? thanks & regards shwetha

2 Replies

AD Administrator Syncfusion Team February 15, 2006 09:24 PM UTC

Hi Shwetha, The excel file can be opened by starting a local system process. Here is a code snippet. System.Diagnostics.Process proc = new System.Diagnostics.Process(); proc.StartInfo.FileName = @"C:\MyExcel.xls"; //file path proc.Start(); Regards, Calvin.


SR Shwetha R February 16, 2006 05:08 AM UTC

hi calvin, Thanks for the response. It works. Is there anyother way of opening the excel file in dotnet other than starting a process? thanks & regards shwetha

Loader.
Up arrow icon