출처: http://manuals.sybase.com/onlinebooks/group-pbarc/@Generic__CollectionView;lang=ko
DataWindow.Print property
Print.property
Description
Properties that control the printing of a DataWindow.
Applies to
DataWindows
Syntax
PowerBuilder dot notation:
dw_control.Object.DataWindow.Print.property
Describe and Modify argument:
"DataWindow.Print.property { = value }"
SyntaxFromSQL:
DataWindow ( Print.property = value )
Parameter |
Description |
property |
A property for printing. Properties and their settings are listed in the table below |
value |
The value to be assigned to the property. Value cannot be a DataWindow expression |
Property for Print |
Value |
Collate |
Whether printing is collated. Note that collating is usually slower since the print is repeated to produce collated sets. Values are:
The user can specify the value in the system's Print dialog box if the printer driver supports it |
Color |
An integer indicating whether the printed output will be color or monochrome. Values are:
The user can specify the value in the system's Print dialog box if the printer driver supports it |
Columns |
An integer specifying the number of newspaper-style columns the DataWindow will print on a page. For purposes of page fitting, the whole DataWindow is a single column. The default is 1 Painter: Newspaper Columns Across option |
Columns.Width |
An integer specifying the width of the newspaper-style columns in the units specified for the DataWindow Painter: Newspaper Columns Width option |
Copies |
An integer indicating the number of copies to be printed The user can also specify this value in the system's Print Setup dialog box if the printer driver supports it If you use both the Print.Copies property and the Print Setup dialog box to indicate that multiple copies should be printed, the total number of copies printed is the product of both values |
DocumentName |
A string containing the name that will display in the print queue when the user sends the contents of the DataWindow object to the printer Painter: Document Name option |
Duplex |
An integer indicating the orientation of the printed output. Values are:
The user can specify the value in the system's Print dialog box if the printer driver supports it |
Filename |
A string containing the name of the file to which you want to print the report. An empty string means send to the printer Painter: Not settable in painter |
Margin.Bottom |
An integer indicating the width of the bottom margin on the printed page in the units specified for the DataWindow You can set Margin.Bottom when using SyntaxFromSQL to generate DataWindow syntax. Painter: Bottom Margin option |
Margin.Left |
An integer indicating the width of the left margin on the printed page in the units specified for the DataWindow You can set Margin.Left when using SyntaxFromSQL to generate DataWindow syntax Painter: Left Margin option |
Margin.Right |
An integer indicating the width of the right margin on the printed page in the units specified for the DataWindow You can set Margin.Right when using SyntaxFromSQL to generate DataWindow syntax Painter: Right Margin option |
Margin.Top |
An integer indicating the width of the top margin on the printed page in the units specified for the DataWindow You can set Margin.Top when using SyntaxFromSQL to generate DataWindow syntax Painter: Top Margin option |
Orientation |
An integer indicating the print orientation. Values are:
Painter: Paper Orientation option |
Page.Range |
A string containing the numbers of the pages you want to print, separated by commas. You can also specify a range with a dash. For example, to print pages 1, 2, and 5 through 10, enter: "1,2, 5-10". The empty string means print all The user can specify the value in the system's Print dialog box if the printer driver supports it |
Page. RangeInclude |
An integer indicating what pages to print within the desired range. Values are:
The user can specify the value in the system's Print dialog box if the printer driver supports it |
Paper.Size |
An integer indicating the size of the paper that will be used for the output:
Painter: Paper Size option |
Paper.Source |
An integer indicating the bin that will be used as the paper source. The integer you use depends on the tray number used by the printer. (To determine the actual bin setting, you can query the printer with a utility that makes API calls to the printer driver). Typical values are:
Painter: Paper Source option |
Preview |
Whether the DataWindow object is displayed in preview mode. Values are:
|
Preview.Rulers |
Whether the rulers display when the DataWindow object displays in preview mode:
You can view rulers in Preview mode in the DataWindow painter. Choose File>Print Preview, then File>Print Preview Rulers. However, the setting is not used at runtime. To see rulers during execution, set Print.Preview.Rulers in code |
Preview.Zoom |
An integer indicating the zoom factor of the print preview. The default is 100% You can view different zoom percentages in Preview mode in the DataWindow painter. Choose File>Print Preview, then File>Print Preview Zoom. However, the setting is not used at runtime. To change the zoom factor during execution, set Print.Preview.Zoom in code |
Prompt |
Whether a Printer Setup dialog displays before a job prints so the user can change the paper or other settings for the current printer. Values are:
Choosing Cancel in the Printer Setup dialog dismisses the Setup dialog; it does not cancel printing. To allow the user to cancel printing, see the Print method. For DataStores, this property is ignored; a dialog is never displayed. Painter: Prompt Before Printing checkbox |
Quality |
An integer indicating the quality of the output. Values are:
The user can specify the value in the system's Print dialog box if the printer driver supports it |
Scale |
An integer specifying the scale of the printed output as a percent The scaling percentage is passed to the print driver. If you have problems with scaling, you may be using a driver that does not support scaling The user can specify the value in the system's Print dialog box if the printer driver supports it For more information, see your print driver documentation |
Usage
In the painterSelect the DataWindow by deselecting all controls; then set values in the Properties view, Print Specifications tab.
Examples
Example 1
ls_data = dw_1.Object.DataWindow.Print.Scale
Example 2
dw_1.Object.DataWindow.Print.Paper.Size = 3
Example 3
ls_data = dw_1.Describe("DataWindow.Print.Scale")
Example 4
dw_1.Modify("DataWindow.Print.Paper.Size = 3")
Example 5
dw_1.Modify("DataWindow.Print.Margin.Top=500")
'IT-개발,DB' 카테고리의 다른 글
[IT/개발] 프레임워크 정의와 개발 요점 (0) | 2010.07.07 |
---|---|
[개발/C#] 네트웍 공유 폴더 사용시 자격증명 방법 (0) | 2010.07.02 |
[개발] 파워빌더, 데이타윈도우에서 Mouse Wheel 사용 제한 (0) | 2010.06.18 |
[IT] ASP.NET 자바스크립트 submit() 함수기능 (0) | 2010.04.20 |
[IT/개발] ASP.NET 다른 페이지로 포스트백(submit) 하기 (0) | 2010.04.19 |
댓글