Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

PrintSetSpacing – PB Docs 2018 – PowerBuilder Library

PrintSetSpacing – PB Docs 2018

PrintSetSpacing

PowerScript function

Description

Sets the factor that PowerBuilder uses to calculate line
spacing.

Syntax

Argument

Description

printjobnumber

The number the PrintOpen function assigned to the
print job.

spacingfactor

The number by which you want to multiply the
character height to determine the vertical line-to-line spacing.
The default is 1.2.

Return value

Integer. Returns 1 if it succeeds and -1 if an error occurs. If any
argument’s value is null, PrintSetSpacing returns null.

Usage

Line spacing in PowerBuilder is proportional to character height.
The default line spacing is 1.2 times the character height. When
Print starts a new line, it sets the x coordinate of the cursor to 0 and
increases the y coordinate by the current line spacing. The
PrintSetSpacing function lets you specify a new factor to be multiplied by
the character height for an open print job.

Examples

These statements start a new print job and set the vertical spacing
factor to 1.5 (one and a half spacing):

See also

PrintOpen


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x