472,328 Members | 1,608 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,328 software developers and data experts.

Office XP Excel - VB.Net Help Please

I keep receiving the following error when I try to access Office XP Excel
through VB.Net on a web form.

I have loaded and registered the Microsoft Office XP PIAs.

I have added a reference in the COM section to:
Microsoft ActiveX Data Objects 2.7 Library
Microsoft ActiveX Plugin
Microsoft Excel 10.0 Object Library
Microsoft Office XP Web Components

Help, what am I missing?
Thanks
Server Error in '/EMID0001' Application.
----------------------------------------------------------------------------
----

Cannot create ActiveX component.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.Exception: Cannot create ActiveX component.

Source Error:

Line 34:
Line 35: ' Start Excel and get Application object.
Line 36: oXL = CreateObject("Excel.Application")
Line 37: oXL.Visible = True
Line 38:
Nov 20 '05 #1
2 5410
Don't use CreateObject. In .NET everything is an object, so you just need
to make an instance of it. Write the code this way:

' Start Excel and get Application object.
Dim oXL as new Excel.Application
oXL.Visible = True

Also, if it just Excel you want to use, you only need a reference to the
Excel Object Library.


"Business Information Systems, Inc." <in********@wikw.com> wrote in message
news:10*************@corp.supernews.com...
I keep receiving the following error when I try to access Office XP Excel
through VB.Net on a web form.

I have loaded and registered the Microsoft Office XP PIAs.

I have added a reference in the COM section to:
Microsoft ActiveX Data Objects 2.7 Library
Microsoft ActiveX Plugin
Microsoft Excel 10.0 Object Library
Microsoft Office XP Web Components

Help, what am I missing?
Thanks
Server Error in '/EMID0001' Application.
-------------------------------------------------------------------------- -- ----

Cannot create ActiveX component.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.Exception: Cannot create ActiveX component.

Source Error:

Line 34:
Line 35: ' Start Excel and get Application object.
Line 36: oXL = CreateObject("Excel.Application")
Line 37: oXL.Visible = True
Line 38:

Nov 20 '05 #2
Don't use CreateObject. In .NET everything is an object, so you just need
to make an instance of it. Write the code this way:

' Start Excel and get Application object.
Dim oXL as new Excel.Application
oXL.Visible = True

Also, if it just Excel you want to use, you only need a reference to the
Excel Object Library.


"Business Information Systems, Inc." <in********@wikw.com> wrote in message
news:10*************@corp.supernews.com...
I keep receiving the following error when I try to access Office XP Excel
through VB.Net on a web form.

I have loaded and registered the Microsoft Office XP PIAs.

I have added a reference in the COM section to:
Microsoft ActiveX Data Objects 2.7 Library
Microsoft ActiveX Plugin
Microsoft Excel 10.0 Object Library
Microsoft Office XP Web Components

Help, what am I missing?
Thanks
Server Error in '/EMID0001' Application.
-------------------------------------------------------------------------- -- ----

Cannot create ActiveX component.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.Exception: Cannot create ActiveX component.

Source Error:

Line 34:
Line 35: ' Start Excel and get Application object.
Line 36: oXL = CreateObject("Excel.Application")
Line 37: oXL.Visible = True
Line 38:

Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Michael | last post by:
Hi All, I am using win2k advance sever, IIS + ASP + Office 2000 +SQL server 2000 I have a internal web site, running on IIS. it is for internal...
5
by: al | last post by:
Greetings, I used article Q317109 (http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q317109) to solve the problem of Excel prcocess does...
1
by: Business Information Systems, Inc. | last post by:
I keep receiving the following error when I try to access Office XP Excel through VB.Net on a web form. I have loaded and registered the...
6
by: Luke Vogel | last post by:
Hi all ... could someone point me in the right direction for programming office applications (specifically excel) using vb.net? Can vb.net...
1
by: Alberto | last post by:
Hi all. I'd like to know if the "architect" version of Visual Studio .NET includes the environment to develop Office application. Any way is it...
5
by: John | last post by:
Hi I need to call methods from office apps from my vb.net app. Some of my clients are still on office 2000 so to maintain compatibility I can not...
3
by: ChrisFrohlich | last post by:
I'm trying to use the Office XP PIA in an ASP.NET application. It's working fine on my workstation and I can manipulate a Workbook using...
5
by: Michael Russell | last post by:
Hi all, Using C#, I've created a simple wrapper class for using Excel. I have Office Pro 2003 installed on my devel machine. The wrapper class...
0
by: Bill Fallon | last post by:
I am developing a VB.Net application with VS 2005 that opens an Excel workbook and populates the worksheet with data. I started developing the...
0
by: tammygombez | last post by:
Hey fellow JavaFX developers, I'm currently working on a project that involves using a ComboBox in JavaFX, and I've run into a bit of an issue....
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: CD Tom | last post by:
This happens in runtime 2013 and 2016. When a report is run and then closed a toolbar shows up and the only way to get it to go away is to right...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
1
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.