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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ERROR with datawindow1.SaveAs("C:\db\mydb.xls",EXCEL5!,True)

Status
Not open for further replies.

randall2nd

Programmer
May 30, 2001
112
US
I am new to PB,using PB 7.0 Build 5031, connecting to a sybase db.
I am getting a return code of -1 when i try to use the SaveAsType EXCEL5!

datawindow1.SaveAs("C:\db\mydb.xls",EXCEL5!,True)

It works just fine when I use:

datawindow1.SaveAs("C:\db\mydb.xls",EXCEL!,True)

But this creates an excel file with a version of 2.1, that it is too low for what i need.

Does the SaveAsType EXCEL5! not work?
Any help appreciated. Randall2nd
 
Found the problem.
I had Power builder version 7.0, in which EXCEL5! does not work.

Sybase released some updates to fix bugs.
version 7.0.3 is the one that fixed the EXCEL5! errors. Randall2nd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top