LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I prevent my "Write JPEG File" vi from printing on my default printer?

Solved!
Go to solution

I use this VI to create a JPEG image of my front panel, but it always both creates the JPEG image like it's supposed to AND it prints to my default printer.  Has anyone else had this problem?  Is there a workaround?  Is there another way to create JPEGs?  I've replaced it with the "Write to BMP File" vi, and I'm getting the same results.

0 Kudos
Message 1 of 4
(2,422 Views)

Never seen that before - posting code that shows this behaviour would be handy.

 

My guess would be that you have an errant VI.Print.Panel to Printer method hanging around somewhere in your code.

---
CLA
0 Kudos
Message 2 of 4
(2,410 Views)
Solution
Accepted by cwoolly

I figured it out.  This VI I'm using had the "Print with Execution" box checked in the "Print Options" Category in VI Properties.  

 

I inherited this code, and I keep finding a lot of little bugs like this here and there.  They make me feel like I'm in the Twilight Zone every time.  Thanks for your help.

0 Kudos
Message 3 of 4
(2,398 Views)

Hah, even better. Glad you found it - it's worth marking your finding as a solution and tagging accordingly so that others with similar problems might see it when searching.

---
CLA
0 Kudos
Message 4 of 4
(2,388 Views)