LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I receive print page coordinates?

Hi,

I'm working on a print preview module for our application and now seem to have hit the wall with the default image and print nodes/properties/functions. How do I get coordinates for a printed page layout? What I mean is:

When I make a preview of whatever the user is trying to print, take an image of that particular VI or panel and draw it on a picture display. Now what I want is to have black lines or even just have that image control represent the actual size of the printed page so the user can tell if everything fits on the page. I know that LabView has a built in preview function that does this, so it must be possible. Help is greatly appreciated.

Message Edited by romulus on 03-09-2007 03:28 PM

0 Kudos
Message 1 of 2
(2,640 Views)
I can't look at what LV does at the moment, but I'm guessing it gets the printer's DPI print data from the OS and uses that to draw the lines. You can get the actual image by using the GetPanelImage method as shown for example in this thread.

___________________
Try to take over the world!
0 Kudos
Message 2 of 2
(2,620 Views)