HighTechTalks DotNet Forums  

Excel Export - Error on Windows Vista - Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT)

Dotnet Framework (Interop) microsoft.public.dotnet.framework.interop


Discuss Excel Export - Error on Windows Vista - Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT) in the Dotnet Framework (Interop) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Ivo Nikolov
 
Posts: n/a

Default Excel Export - Error on Windows Vista - Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT) - 08-13-2007 , 08:33 AM






Hi All
I write on C#
This Code work fine, but un Windows Vista I get an Error Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT)

--------program fragment -------------------------------------------------------
System.Threading.Thread.CurrentThread.CurrentCultu re = System.Globalization.CultureInfo.CreateSpecificCul ture("en-US") ;

Microsoft.Office.Interop.Excel.Application app = new Microsoft.Office.Interop.Excel.Application() ;
if (app == null)
{
MessageBox.Show("Microsoft EXCEL Not Found!", "", MessageBoxButtons.OK, MessageBoxIcon.Error);
return ;
}
// ------------On Next Line I Get an Error : Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT) ---------------------------
//
Microsoft.Office.Interop.Excel.Workbook workbook = app.Workbooks.Add(Microsoft.Office.Interop.Excel.X lSheetType.xlWorksheet); // Error
// ------------------------------------------------------------
Microsoft.Office.Interop.Excel.Worksheet worksheet = (Microsoft.Office.Interop.Excel.Worksheet)(workboo k.Worksheets.get_Item(1));



Reply With Quote
  #2  
Old   
Ivo Nikolov
 
Posts: n/a

Default Re: Excel Export - Error on Windows Vista - Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT) - 08-17-2007 , 08:57 AM






Hi,

I try a couple of times to invoke a method app.Workbooks.Add

- with - null
- with - Missing.Value
- with - Microsoft.Office.Interop.Excel.XlWBATemplate.xlWBA TWorksheet

and any time I get this Error


Any suggestions ?

Thanks.

"Ivo Nikolov" <geni_ (AT) yhaoo (DOT) com> wrote

Hi All
I write on C#
This Code work fine, but un Windows Vista I get an Error Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT)

--------program fragment -------------------------------------------------------
System.Threading.Thread.CurrentThread.CurrentCultu re = System.Globalization.CultureInfo.CreateSpecificCul ture("en-US") ;

Microsoft.Office.Interop.Excel.Application app = new Microsoft.Office.Interop.Excel.Application() ;
if (app == null)
{
MessageBox.Show("Microsoft EXCEL Not Found!", "", MessageBoxButtons.OK, MessageBoxIcon.Error);
return ;
}
// ------------On Next Line I Get an Error : Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT) ---------------------------
//
Microsoft.Office.Interop.Excel.Workbook workbook = app.Workbooks.Add(Microsoft.Office.Interop.Excel.X lSheetType.xlWorksheet); // Error
// ------------------------------------------------------------
Microsoft.Office.Interop.Excel.Worksheet worksheet = (Microsoft.Office.Interop.Excel.Worksheet)(workboo k.Worksheets.get_Item(1));



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.