From 11:00 PM CST Friday, Apr 11th - 1:30 PM CST Saturday, Apr 12th, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabWindows/CVI

Content Type
Programming Language
Current manual
Table of Contents

ATTR_PRINT_AREA_WIDTH

ATTR_PRINT_AREA_WIDTH

Type: Print attribute
Description: Specifies the width of the output in millimeters/10. For example, an input of 1721 will result in a print area width of 172.1 mm. (In this case, width refers to the horizontal dimension of the paper when looking at it in portrait mode, regardless of the ATTR_ORIENTATION setting.)

VAL_USE_ENTIRE_PAPER specifies that the output should use as much of the paper width as possible.

VAL_INTEGRAL_SCALE forces the hardcopy output to be scaled to an integral multiple of its screen size, thereby preventing aliasing and distortion.
Types of Printing: Graphics.
Data Type: integer
Valid Range: 1 to 7620, VAL_USE_PRINTER_DEFAULT or VAL_INTEGRAL_SCALE
Default Value: VAL_INTEGRAL_SCALE
LabWindows/CVI
Compatibility:
LabWindows/CVI 5.0 and later

Values

VAL_INTEGRAL_SCALE When applied to either the height or the width, VAL_INTEGRAL_SCALE ensures that the ratio between the object's height and width in dots on the hardcopy is the same as the ratio between its height and width in pixels on the screen. This prevents distortion.

Using VAL_INTEGRAL_SCALE also ensures that, for both the height and width, the number of dots on the hardcopy is an integral multiple of the number of pixels on the screen. This prevents aliasing, in which screen lines are lost or duplicated in an uneven manner.

If you use VAL_INTEGRAL_SCALE for both the height and width, the number of dots on the hardcopy will be identical to the number of pixels on the screen. If you use VAL_INTEGRAL_SCALE on just one dimension, then LabWindows/CVI may round down the other dimension to maintain the integral scaling.
VAL_USE_ENTIRE_PAPER Use as much of the paper as possible.
In This Section
Was this information helpful?

Help us improve your future ni.com experience.

Did you find the documentation you were looking for?

Submit