LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how do I make my print vi print landscape?

Hello,
I am trying to print a graph and so far, am having pretty good luck.  The way I did it is I made up a vi that holds an xy graph, sent it all the required data through it's connector when I called it, and configured it to print after the vi executes.  That works great, with one exception.  It will not print landscape.  Does anyone know how to configure it to print landscape?
Thanks.
Rick
 
0 Kudos
Message 1 of 5
(2,926 Views)
Hi Rick,
 
Hope that helps!
Kalin T.
0 Kudos
Message 2 of 5
(2,902 Views)

Kalin,

That worked.  I used the property node/invoke method described in your link.  I do have a question, however.  When I placed the property node on the block diagram, the property node was set up for "Application".  At first, I could not find the "Properties>>Printing>>Page Orientation" described in the app note.  After looking at the example code in the app note, I noticed the property node in the example was titled "VI" instead of application.  To get it to work, I had to wire a "Static VI Reference" to the reference input on the property node.  That changed it from "Application" to "VI".  The example code has nothing wired to the input, so I'm assuming there is a way to select this w/o wiring to it.  How is that done?

Thanks.

Rick

 

0 Kudos
Message 3 of 5
(2,886 Views)
Rick,
 
One of the inputs of a Property Node is reference. reference is the refnum associated with the object for which you want to set or get properties. If the Property Node class is Application or VI, you do not have to wire a refnum to this input. For the Application class, the default is the current application instance. For the VI class, the default is the VI containing the Property Node.
 
When you place a Property Node on the block diagram it automatically assumes Application class. If you want to change the class to VI, you simply right-click on it and find the VI class. Please look at the attached image for the exact location.
 
Hope that helps!
Kalin T.
0 Kudos
Message 4 of 5
(2,863 Views)
Got it.  Thanks.
0 Kudos
Message 5 of 5
(2,855 Views)