Results 1 to 2 of 2

Thread: VB6 to .NET Conversion Problem - Resolved

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2002
    Location
    Southern Oregon
    Posts
    2

    Unhappy VB6 to .NET Conversion Problem - Resolved

    I have several vb programs that I use to create excel spreadsheets. I used the upgrade wizard to convert my VB6 files to a .net file. Before conversion, my trouble statement looks like this:

    xlApp.Selection.Subtotal GroupBy:=2, Function:=xlSum,
    TotalList:=Array(7, 8), _
    Replace:=True, PageBreaks:=True,
    SummaryBelowData:=True

    After conversion it looks like this:

    xlApp.Selection.Subtotal(GroupBy:=2,
    Function:=Excel.XlConsolidationFunction.xlSum,
    TotalList:=New Object(){7, 8},
    Replace_Renamed:=True,
    PageBreaks:=True, SummaryBelowData:=True)

    When I run the new code, I get the following error:

    An unhandled exception of type
    'System.Runtime.InteropServices.COMException' occurred in
    mscorlib.dll

    Additional information: Exception from HRESULT: 0x800A03EC.

    Can anyone tell me what this message means and what I can do to correct it?

    Thanks
    Last edited by deeanneg; Apr 12th, 2002 at 01:48 PM.
    Dee

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width