# ConfigurePrinter

int ConfigurePrinter (char printFile[], int orientation, int imageWidth, int imageHeight, int ejectAfter);

## Purpose

Sets the orientation, height, width, and eject after print attributes.

| Note ConfigurePrinter has been superseded by SetPrintAttribute.

## Parameters

Input
Name | Type | Description
printFile | string | LabWindows/CVI ignores printFile because you specify the print file at the system level.
orientation | integer | Orientation of the image on the page. Valid Values 1 = VAL_PORTRAIT (Default) 2 = VAL_LANDSCAPE
imageWidth | integer | Width of the image in millimeter/10 or VAL_USE_PRINTER_DEFAULT or VAL_INTEGRAL_SCALE. Depending on the resolution of the display adapter and the printer, specifying an absolute width can produce aliasing in the output. Aliasing occurs when lines on the screen are either lost or duplicated in a uneven manner on the printer. You can prevent aliasing by specifying a width of VAL_INTEGRAL_SCALE. This action causes the image width to be based on the image length. In this case, the image is scaled using an integral ratio (1:1, 1:2, 1:3, and so on) that produces an image on the printer less than or equal to the specified length. If the length is also VAL_INTEGRAL_SCALE, a scaling ratio of 1:1 is used.
imageHeight | integer | Height of the image in millimeter/10 or VAL_USE_PRINTER_DEFAULT or VAL_INTEGRAL_SCALE. Depending on the resolution of the display adapter and the printer, specifying an absolute height can produce aliasing in the output. Aliasing occurs when lines on the screen are either lost or duplicated in a uneven manner on the printer. You can prevent aliasing by specifying a height of VAL_INTEGRAL_SCALE. This action causes the image height to be based on the image width. In this case, the image is scaled using an integral ratio (1:1, 1:2, 1:3, and so on) that produces a image on the printer less than or equal to the specified length. If the length is also VAL_INTEGRAL_SCALE, a scaling ratio of 1:1 is used.
ejectAfter | integer | Determines if the next output is ejected from the printer. When ejectAfter is set to zero, outputs print on the same page until ejectAfter is set to one.

## Return Value

Name | Type | Description
status | integer | Return value indicating whether the function was successful. A negative number indicates that an error occurred.
Code | Error Message String
xx | Success