LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How Can I print more of one control in the same sheet?

I have two panels, the first has a stripchart this is the main panel; the second has a graph, a table control and two text control. I need to print on the middle top my stripchart and on the other middle the graph, the table and two text, like they are seen in the screen.
0 Kudos
Message 1 of 3
(3,046 Views)
You can use the ATTR_EJECT_AFTER print attribute in order to combine multiple printouts in the same page. By setting that attribute to 0 (using SetPrintAttribute) you can call PrintPanel or PrintCtrl multiple times. When you're done printing, simply set ATTR_EJECT_AFTER back to 1, and the print job should be sent to the printer.

The number of times you have to print will depend on what else is in your panels. If you want to print each panel as it appears on the screen, you can just call PrintPanel a couple of times. If, on the other hand, your panels include other controls that you don't want to print, then you will have to call the PrintCtrl function 4 times, one for each of the controls you want to print.

You will also have to play around with the ATTR_XOFFSET, ATTR_YOFFSET, ATTR_PRINT_AREA_WIDTH, and ATTR_PRINT_AREA_HEIGHT attributes in order to place your panels or your controls exactly where you want them.


Luis
NI
0 Kudos
Message 2 of 3
(3,038 Views)
Thank you, I'm going to try doing by this way, if I will have more dubs I will tell you about it.

Best Regards,
Hiram Abif
0 Kudos
Message 3 of 3
(3,032 Views)