If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > OWC component error

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-22-09, 12:34
Rappa21 Rappa21 is offline
Registered User
 
Join Date: May 2009
Posts: 4
Question OWC component error

I have this code:
Code:
Set oExcel = Server.CreateObject("OWC11.Spreadsheet")
Path=Server.MapPath("Ejercicio3.xls")
oExcel.Cells(1,1).Value = "Pete"
oExcel.Cells(1,2).Value = "John"
oExcel.Cells(1,3).Value = "Lana"
oExcel.ActiveSheet.Export Path, 0
And I get this error when executing the page:
Quote:
Microsoft VBScript runtime (0x800A01B6)
Object doesn't support this property or method: 'Export'

Any help and ideas will be greatly appreciated
Reply With Quote
  #2 (permalink)  
Old 05-22-09, 13:11
Rappa21 Rappa21 is offline
Registered User
 
Join Date: May 2009
Posts: 4
As dumbass as I am, I found what was going wrong. the line saying:
Code:
oExcel.ActiveSheet.Export Path, 0
Sould say:
Code:
oExcel.Export Path, 0
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On