Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBScript Export from OWC11 to Excel as XLS file

Status
Not open for further replies.

BarryMVS

IS-IT--Management
Apr 17, 2003
172
0
0
GB
Hi,

Can anyone offer me assitance in setting up the Export command for OWC11.

I have produced my XML page using ASP and have got down to my export command, but the script refuses to aknowledge my constants variable even though I have already defined it.

Code:
Dim oSS
Dim c

Set oSS = Server.CreateObject("OWC11.Spreadsheet")
    Set c = oSS.Constants

and
Code:
oSS.Export "test.xls", c.ssExportActionOpenInExcel, c.ssExportAsAppropriate

It keeps telling me that the object 'o' is missing.
If I add 'oSS.' in front of each of the constants for the Export command, the error is returned that 'c' is not an accepted methord or object.

I'm confused. Any assistance would be most welcomed thanks,


Barry

ICT Network Administrator
IT Services Manager
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top