Click here to Skip to main content
15,896,207 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Iam importing Excel in visual studio 2005
Imports Microsoft.Office.Interop.Excel

I have create Instance Like this

Dim excel As New Microsoft.Office.Interop.Excel.Application
Dim wBook As Microsoft.Office.Interop.Excel.Workbook
Dim wSheet As New Microsoft.Office.Interop.Excel.Worksheet
wBook = excel.Workbooks.Add()

and used Range Method to calucalte as follows:-

'wSheet.Range(A1).Value.ToString'


The Following error occured it's working fine in XP
but it's not working in VISTA

Creating an instance of the COM component with CLSID {00020820-0000-0000-C000-000000000046} from the IClassFactory failed due to the following error: 80010001.

Iam Using Microsoft.Excel 12.0 object Library.


Pls give me a solution
Regards
Pratheesh
Posted

1 solution

I think the problem is with the access rights.

Check if the user has appropriate permission to access the dll. :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900