Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > 'Document not saved' error - excel workbook

Reply
Thread Tools

'Document not saved' error - excel workbook

 
 
philip herman
Guest
Posts: n/a
 
      07-11-2003
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();
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error Message Saving Excel Workbook =?Utf-8?B?TWFyaw==?= ASP .Net 1 12-03-2005 04:32 PM
problems importing excel workbook and displaying in dynamic datagrid optimizeit@cox.net ASP .Net 0 02-24-2005 05:46 PM
Problem with Page Orientation of Excel Workbook While Streaming MIME Content Yelena Kaplun ASP .Net 1 01-19-2005 12:27 AM
Closing an excel workbook fires Workbook_BeforeClose Winshent ASP .Net 0 11-03-2004 03:53 PM
Excel _WorkBook vs. Excel.Workbook =?Utf-8?B?SmltIEhlYXZleQ==?= ASP .Net 1 09-29-2004 03:48 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57