LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

To Print the Full panel

Hi,
I want to print from a panel where i have a List box with more 100 lines.I am using
PrintPanel (hLxrTable, "", 1, VAL_FULL_PANEL, 1);
But the application prints only the visble area from the panel. I want to know how can i print all the line in the control. Is there any Attribute to be set for the same.

Regards,
K.srinivasan.
0 Kudos
Message 1 of 2
(2,976 Views)
Hello Joesam,

The reason why you are seeing this behavior is because when you send a request to print using the PrintCtrl() and PrintPanel() commands in LabWindows/CVI, the data will be modified and/or optimized by your print driver for page area. This causes you to see a discrepancy between what is viewed on the screen and what is actually printed. In order to fix this you should use the SetPrintAttribute() command to set the print area height and print area width as documented in the following KnowledgeBase.

Also, in the PrintCtrl function, you can set the scaling parameter to be 'full size' and if the printout does not fit on the page, you can call SetPrintAttribute() before PrintCtrl() to set ATTR_PRINT_AREA_WIDTH to VAL_INTEGRAL_SCALE and ATTR_PRINT_AREA_HEIGHT to VAL_USE_ENTIRE_PAPER.

Thanks.
Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 2 of 2
(2,953 Views)