Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Microsoft.Office.Interop.Excel SaveAs error when clicking no or ca

I get an "error from Hresult" when attempting to SaveAs and clicking no or
cancel.

Here is the line...
workbookWrapper.ComObject.SaveAs(reportTypeFileNam e,
Microsoft.Office.Interop.Excel.XlFileFormat.xlWork bookNormal, Type.Missing,
Type.Missing, Type.Missing, Type.Missing,
Microsoft.Office.Interop.Excel.XlSaveAsAccessMode. xlNoChange, Type.Missing,
Type.Missing, Type.Missing, Type.Missing, Type.Missing);

It will bring up a message to overwrite a file, if the user selects "yes"
then it works fine. Selecting "no" or "cancel" brings up Exception from
HResult:0X800A03EC. Any ideas on what is happening?
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Microsoft.Office.Interop.Excel when exporting from another program Colin Excel Discussion (Misc queries) 0 January 2nd 09 06:08 AM
Exception from HRESULT: 0x800A03EC. at Microsoft.Office.Interop.Excel.WorkbookClass.get_VBProject() [email protected] Excel Programming 0 April 11th 06 04:40 PM
Excel .Net Interop - .Net code not executing. Custom install of Office 2003 Phil Rayner Excel Programming 5 January 31st 06 07:10 AM
Interop.Excel version 11 does not work with Office 2003 sp2 Hua Huang Excel Programming 3 November 22nd 05 09:36 PM
Deployment of Microsoft Office Xp Primary Interop Assembly [email protected] Excel Programming 0 October 10th 05 01:36 PM


All times are GMT +1. The time now is 08:56 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"