DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Mon, 13 Aug 2007 15:33:41 +0300,    posted on: microsoft.public.dotnet.framework.interop        back       

Thread Index
  1    Ivo Nikolov
          2    Ivo Nikolov


Excel Export - Error on Windows Vista - Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT)   
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.CurrentCulture =  System.Globalization.CultureInfo.CreateSpecificCulture("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.XlSheetType.xlWorksheet);   // Error
// ------------------------------------------------------------
   Microsoft.Office.Interop.Excel.Worksheet worksheet = (Microsoft.Office.Interop.Excel.Worksheet)(workbook.Worksheets.get_Item(1
Date:Mon, 13 Aug 2007 15:33:41 +0300   Author:  

Re: Excel Export - Error on Windows Vista - Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT)   
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.xlWBATWorksheet

and any time I get this Error


Any suggestions ?

Thanks.

  "Ivo Nikolov"  wrote in message news:%23ora$Ya3HHA.5360@TK2MSFTNGP03.phx.gbl...
  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.CurrentCulture =  System.Globalization.CultureInfo.CreateSpecificCulture("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.XlSheetType.xlWorksheet);   // Error
  // ------------------------------------------------------------
     Microsoft.Office.Interop.Excel.Worksheet worksheet = (Microsoft.Office.Interop.Excel.Worksheet)(workbook.Worksheets.get_Item(1
Date:Fri, 17 Aug 2007 15:57:03 +0300   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us