Open Excel File

  • Thread starter Thread starter Phoebe
  • Start date Start date
P

Phoebe

Hi, Good Day!

I'd like to open a excel file using VB.net.

I've added a COM reference (Microsoft Excel 9.0 Object Library) and written
the below coding,
I received an error saying that "COM object with CLSID {....} is either not
valid or not registered.

Dim aa As Excel.Workbooks

Dim bb As New Excel.Workbook()

bb = aa.Open("c:\aaa.xls")


Can someone help.
Thanks in advanced.

rgds,
Phoebe.
 
I received an error saying that "COM object with CLSID {....} is either
not
valid or not registered.

You may have office installation issues.

Are you using Excel 97? If you are using Excel 2000 it means you have 2
different versions of Excel on your computer or you are accessing the wrong
library.

Make sure OWC10.dll exists and is registered.

If you don't know how to register it, or none of these work post back here
please.
 
Hi,

I can't find the dll--OWC10.dll that mentioned, wht shd i do now?

Thanks in advanced.

rgds,
Phoebe.
 
I can't find the dll--OWC10.dll that mentioned, wht shd i do now?

What version of office are you using?
 
Back
Top