语法: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 0 Microsoft
Excel format.
Text!
Text 1 (Default) Tab-separated
columns with a return at the end of each row.
CSV!
CSV 2 Comma-separated
values.
SYLK!
SYLK 3 Microsoft
Multiplan format.
WKS!
WKS 4 Lotus 1-2-3 format.
WK1!
WK1 5 Lotus 1-2-3 format.
DIF!
DIF 6 Data Interchange
Format.
dBASE2!
dBASE2 7 dBASE-II
format.
dBASE3!
dBASE3 8 dBASE-III
format.
SQLInsert! SQLInsert 9 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.
加载中,请稍候......