Ask a Question related to ASP.NET Security, Design and Development.
-
Venkatachalam #1
Problem in launching and saving Excel file via ASP.NET
Hello,
In my web application, I want to create an Excel application, Based on
some condition. When my ASP application creats the Excel applicatrion, the
Excel application loads in the memorey (By viewing the task List Process).
But when I try to do some operation on the Excel, it throws exception which I
have copied in the later portion.
Before going to the Exception details, I like to give more info on my
tries...
* I gave full permission to ASPNET user account
* I gave Launching permission for Excel to ASPNET user account in the
DCOM-CONFIG also
these two also did not help me. Any help is appricated.
/*--------Begining of Error Message------------*/
Exception from HRESULT: 0x800A03EC.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.
Exception Details: System.Runtime.InteropServices.COMException: Exception
from HRESULT: 0x800A03EC.
Line 54: oExcel.Workbooks.Application.SaveWorkspace("C:\\Sa mpleExcel.Xls");
/*--------End of Error Message------------*/
/*--------Begning of Code------------*/
private void Button1_Click(object sender, System.EventArgs e)
{
Excel.ApplicationClass oExcel = new Excel.ApplicationClass();
oExcel.Visible = true;
// Lot more code need to be added
oExcel.Workbooks.Application.SaveWorkspace("C:\\Sa mpleExcel.Xls");
}
/*--------End of Code------------*/
Thanks
With regards
Venkat
Venkatachalam Guest
-
Place Excel into table with ability to link when native Excel file is updated.
Is it possible to place an Excel file into InDesign and create a link so that any changes made later to the Excel file can be updated in InDesign? ... -
Problem Using Icon in Excel 2003 to Create PDF file
I am using Acrobat 6 and Excel 2003. In Excel, if I click on the icon to create a PDF file I immediately get a popup saying "Compile Error in hidden... -
Problem in saving file using File io
U may install FileXtra4.x32 from http://www.kblab.net/xtras .it is free distribute and really very good. It also can save picture... but u need to... -
Saving a file as excel
??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????... -
Problem saving tiff file as jpg
I have opened a tiff file from a disk and am trying to save on my hard drive as a jpg file - however, jpg does not appear as a file option. There are...



Reply With Quote

