int PrintPanel (int panelHandle, char filename[], int scaling, int scope, int confirmDialogBox);
Prints the selected panel.
While this function is printing, it blocks any other thread in your program that attempts to print.
Remember that LabWindows/CVI maintains only one copy of the print attributes you set with SetPrintAttribute. Thus, when you change a print attribute in one thread, the change affects printing functions you subsequently call in other threads.
Input | ||||
Name | Type | Description | ||
panelHandle | integer | Specifier for a particular panel that is currently in memory. You obtain this handle from LoadPanel, NewPanel, or DuplicatePanel. | ||
filename | string | Name of the output file. If the name is not empty, the output is redirected to the file. If the name is not a complete pathname, the file is created relative to the current working directory. |
||
scaling | integer | Selects the scaling mode for printing. 1 expands the panel to full size. 0 prints the panel at the same relative location and size on paper as displayed on the screen.
|
||
scope | integer | Selects the portion of the panel to print: VAL_VISIBLE_AREA or VAL_FULL_PANEL. VAL_VISIBLE_AREA—Prints only the portion of the panel that is visible on the screen. Menu bars, scroll bars, and a frame are printed along with the visible portion. VAL_FULL_PANEL—Prints the entire panel. No menu bars, scroll bars, or frames print. Regardless of the scope, objects within child panels are clipped to the frame of the child panel.
|
||
confirmDialogBox | integer | Displays a dialog box before printing to confirm print attributes. The dialog box shows the current print attribute values and to what extent the current printer supports them. The end-user can change the attribute values during run time. |
Name | Type | Description | ||||||||||||||||||||||||
printStatus | integer | The status of the print operation. The PrintCtrl function returns a value that contains bit-fields.
A negative value indicates that an error occurred. |