Ask a Question related to ASP.NET General, Design and Development.
-
philip herman #1
'Document not saved' error - excel workbook
Tried everything including allowing full control to ASPNET user to
folder containing workbook but stiil get
'System.Runtime.InteropServices.COMException: Document not saved'
exception. Any ideas?
ApplicationClass excapp = new ApplicationClass();
WorkbookClass wb = null;
string sPath = Request.ApplicationPath + @"\aging.xls";
wb = (WorkbookClass)excapp.Workbooks.Open(Server.MapPat h(sPath),
Missing.Value,Missing.Value,Missing.Value,Missing. Value,Missing.Value,Missing.Value,Missing.Value,Mi ssing.Value,Missing.Value,Missing.Value,Missing.Va lue,Missing.Value);
excapp.Run((object)Convert.ToString("RunReport"),M issing.Value,Missing.Value,Missing.Value,Missing.V alue,Missing.Value,Missing.Value,Missing.Value,Mis sing.Value,Missing.Value,Missing.Value,Missing.Val ue,Missing.Value,Missing.Value,Missing.Value,Missi ng.Value,Missing.Value,Missing.Value,Missing.Value ,Missing.Value,Missing.Value,Missing.Value,Missing .Value,Missing.Value,Missing.Value,Missing.Value,M
ssing.Value,Missing.Value,Missing.Value,Missing.Va lue,Missing.Value);
wb.Save();
philip herman Guest
-
convert entire workbook in excel to pdf
Does anyone know why it seems to be impossible to convert an entire workbook to a single pdf usin gadobe acrobat 7.0 standard, os x tiger, office... -
Can I write Macros in excel workbook ?
Hello, I am using spreadsheet::WriteExcel module for writing my output to excel file. But the user now wants to have macros in the excel file. ... -
How to save a excel workbook in a web application
I used the following code to create a workbook and save it in a webapplication. dim oExcel As Excel.ApplicationClass dim oBook As... -
The document could not be saved. There was a problem reading this document (109).
Me again. I lied. When I tried to use Acrobat Pro 6 to save a file created in Acrobat 5, I got the "info" box: "The document could not be saved.... -
Can't open an Excel 2K workbook from ASP.NET application on Win2K Server
I'm trying to open an Excel wokrbook from ASP.NET application with this statement: oExcel = Excel.Workbooks.Open(sFile) and I get this error:...



Reply With Quote

