请问把数据窗口内容保存为excel的问题?
RT
例如dw_c.saveas(ls_filename+".xls",Excel8!,True)
提示错误 Illegal enumerate constant :excel8
[解决办法]
你的pb帮助中,SaveAsType的说明中是否包含excel8!
SaveAsType DataWindow constant
Values
PowerBuilder enumerated valueWeb DataWindowNumeric valueMeaning
Excel!Excel0Microsoft Excel format.
Text!Text1(Default) Tab-separated columns with a return at the end of each row.
CSV!CSV2Comma-separated values.
SYLK!SYLK3Microsoft Multiplan format.
WKS!WKS4Lotus 1-2-3 format.
WK1!WK15Lotus 1-2-3 format.
DIF!DIF6Data Interchange Format.
dBASE2!dBASE27dBASE-II format.
dBASE3!dBASE38dBASE-III format.
SQLInsert!SQLInsert9SQL syntax.
Clipboard!Clipboard10Save an image of the graph to the clipboard.
PSReport!PSReport11Powersoft Report (PSR) format.
WMF!WMF12Windows Metafile format.
HTMLTable!HTMLTable13HTML TABLE, TR, and TD elements.
Excel5!Excel514Microsoft Excel Version 5 format.
XML!XML15Extensible Markup Language (XML).
XSLFO!XSLFO16XSL (Extensible Stylesheet Language) Formatting Objects (XSL-FO).
PDF!PDF17Portable Document Format (PDF).
Excel8!Excel818Microsoft Excel Version 8 and higher format.