LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

More Print Panel Problems

I have a vi that shows a graph and a button to commence printing of the graph. In order to have black lines on white background to make the graph printer friendly, I call another vi when the print button is pressed. Print Graph.vi (attached) rebuilds the graph and then calls "Print Panel with Printer.vi".

The problem is that it only works properly when the Print Graph.vi is open. When running normally or when compiled the resultant printout have the graph, but no data. It is almost as if the evoking of "Print Panel with Printer.vi" is creating a new copy of the Print Graph.vi in order to print and there is no data being passed to it. What is going on?

Steve
Download All
0 Kudos
Message 1 of 2
(2,477 Views)
I tried calling the subVI from a main program and got it to print. When you call the subVI, do you set it to Show Front Panel When Called and Close Afterwards? If you don't display the panel, then the data on it doesn't get updated.
0 Kudos
Message 2 of 2
(2,477 Views)