LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to print picture

I used a program to generate a picture. I want to print it directly with a printer instead of inserting word or ecxcel. What should I do?

0 Kudos
Message 1 of 22
(1,512 Views)

Go to windows explorer, right click on the file and select "Print".

0 Kudos
Message 2 of 22
(1,489 Views)

If you attached your LabVIEW code, we'd be able to tell what you did to generate the picture.  We'd then (probably) be able to advise you how to export your "picture" (or "image") to as suitable format (like .bmp, .png, .jpeg, etc.) that could be sent to a printer by asking Windows to send the file to the Printer of your choice.

 

If you are using LabVIEW 2023, please "Save for Previous Version" and specify LabVIEW 2021 or 2019 to get more of the "old-timers" to venture an opinion.

 

Bob Schor

0 Kudos
Message 3 of 22
(1,488 Views)

Place your picture on the front panel, then invoke node Print.Panel To Printer:

 

Screenshot 2023-06-07 15.11.42.png

https://www.ni.com/docs/en-US/bundle/labview/page/lvprop/vi_prnt_pnl_to_prnter.html

 

This is probably one of the easiest ways.

0 Kudos
Message 4 of 22
(1,478 Views)

You can use a function called Read JPEG file then use draw functions to show on the picture indicator, then use the property node described before to print front panel after execution. 

 

 

LVNinja_0-1686144965721.png

 

 

Go to VI Properties -> Print 

Select the last item. 

LVNinja_1-1686145076647.png

 

 

0 Kudos
Message 5 of 22
(1,467 Views)

@田淇予 wrote:

I used a program to generate a picture. I want to print it directly with a printer instead of inserting word or ecxcel. What should I do?


This is a very generic questions and, (unless you posted in the wrong place!!!), maybe you are actually talking about a LabVIEW program where the picture is displayed on the LabVIEW front panel and you want to use LabVIEW to print this directly.

 

Assuming this is a LabVIEW question, we can give more specific help once you show us what you have. There are plenty of ways!

0 Kudos
Message 6 of 22
(1,457 Views)

Use "System Exec.vi":

mspaint.exe -p imagePath

 

George Zou
0 Kudos
Message 7 of 22
(1,451 Views)

Thank you for your reply, butI want to trigger the printer by clicking a button when the software generates pictures.

0 Kudos
Message 8 of 22
(1,447 Views)

please properly describe what you are trying to accomplish.

0 Kudos
Message 9 of 22
(1,442 Views)

Again, show us what you have? Do you have a suitable defined default printer?

0 Kudos
Message 10 of 22
(1,437 Views)