加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

数据窗口的Saveas 用法

(2007-03-26 22:35:32)
分类: 杂项

语法:dw_1.SaveAs ( { string filename, saveastype saveastype, boolean colheading } )
Argument Description
dwcontrol A reference to a DataWindow control, DataStore, or child DataWindow.

变量
1.filename (optional for PowerBuilder) A string whose value is the name of the file in which to
save the contents. If you omit filename or specify an empty string (""), the DataWindow prompts for the filename.Working with DataStore objects  If you are working with a DataStore, you must supply the filename argument.

2.saveastype (optional for PowerBuilder) A value of the SaveAsType enumerated data type (PowerBuilder)  or a string (Web DataWindow) specifying the format in which to save the contents of the DataWindow object. For a list of values, see SaveAsType.
PowerBuilder enumerated value Web DataWindow Numeric value Meaning
Excel!         Excel Microsoft Excel format.
Text!          Text (Default) Tab-separated columns with a return at the end of each row.
CSV!           CSV Comma-separated values.
SYLK!          SYLK Microsoft Multiplan format.
WKS!           WKS Lotus 1-2-3 format.
WK1!           WK1 Lotus 1-2-3 format.
DIF!           DIF Data Interchange Format.
dBASE2!        dBASE2 dBASE-II format.
dBASE3!        dBASE3 dBASE-III format.
SQLInsert!     SQLInsert SQL syntax.
Clipboard!     Clipboard 10 Save an image of the graph to the clipboard.
PSReport!      PSReport 11 Powersoft Report (PSR) format.
WMF!           WMF 12 Windows Metafile format.
HTMLTable!     HTMLTable 13 HTML TABLE, TR, and TD elements.
Excel5!        Excel5 14 Microsoft Excel Version 5 format.
XML!           XML 15 Extensible Markup Language (XML).
XSLFO!         XSLFO 16 XSL (Extensible Stylesheet Language) Formatting Objects (XSL-FO).
PDF!          PDF 17 Portable Document Format (PDF).

3.colheading (optional for PowerBuilder) A boolean value indicating whether you want to include the DataWindow's column headings at the beginning of the file. The default value is TRUE. This argument is used for the following formats: Clipboard, CSV, XLS, WKS, TXT, and SYLK. For most other formats, column headings are always saved.

0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有