|
-
Sep 24th, 2000, 09:17 PM
#1
Thread Starter
Lively Member
Hey I just bought the Hands on ASP for VB6/Web Development and it's great HOWEVER I;m having a problem on chapter 11..
Here is the sample code
<% oExcel = Server.CreateObject("Excel.Application")%>
< oExcel.Caption %>
it's support to show Microsoft Excel on the page when it loads however I'm getting this..
<b>Error Type:
Microsoft VBScript runtime (0x800A01A8)
Object required: 'Microsoft Excel'
/Default.asp, line 12</b>
It must be something stupid. I searched the registry for AllowOutOfProcCmpnts.. found none, so I added the key to where microsoft says to (to make IIS run EXE's).. but it didnt work.. I figured I ask here and maybe get a quicker answer then to write the authors of the book.
-
Sep 24th, 2000, 10:38 PM
#2
Frenzied Member
This is probably a longshot, but do you have Excel installed?? The example is assuming you do.
oOOo--oOOo
__ /\/\onte96
oOOo--oOOo
Senior Programmer/Analyst
MCP
[email protected]
[email protected]
Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..
-
Sep 24th, 2000, 11:32 PM
#3
Thread Starter
Lively Member
well of course! Here is my setup..
Win2000 Profession with SP1 (IIS 5.0 on NTFS)
Office 2000 Profession with SP1
VB6 Professional with SP4
-
Sep 25th, 2000, 02:22 AM
#4
Hyperactive Member
Your problem is that you didn't set the object. Your sample code should look like this:
Code:
<% Set oExcel = Server.CreateObject("Excel.Application")
oExcel.Caption %>
If you don't add the Set keyword, a referencable object never gets created.
Hope this helps.
-
Sep 25th, 2000, 07:51 AM
#5
Thread Starter
Lively Member
THAT DID IT! I can't F#$#@$ believe it. You would think that when you write a beginners guide book that you ATLEAST check for bugs in the example code! thanks guy I owe you.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|