see07
Regular
Hello I have a web form project in which I need to open an .xls file, I have this code:
string sysFolder = @"C:";
ProcessStartInfo pInfo = new ProcessStartInfo();
pInfo.FileName = sysFolder + @"\\tjcr.xls";
pInfo.UseShellExecute = true;
Process p = Process.Start(pInfo);
When last code line is executed, system remains as it was executing something (a glass hour is shown) but it may remain there for hours not showing Excel sheet.
If I place this same code into a project using Windows Form is working OK.
My questions are: Its not possible use this code in a Web Form? What if I need to do it in a web form?
Ill appreciate your comments.
A.L.
string sysFolder = @"C:";
ProcessStartInfo pInfo = new ProcessStartInfo();
pInfo.FileName = sysFolder + @"\\tjcr.xls";
pInfo.UseShellExecute = true;
Process p = Process.Start(pInfo);
When last code line is executed, system remains as it was executing something (a glass hour is shown) but it may remain there for hours not showing Excel sheet.
If I place this same code into a project using Windows Form is working OK.
My questions are: Its not possible use this code in a Web Form? What if I need to do it in a web form?
Ill appreciate your comments.
A.L.