LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to print picture


@田淇予 wrote:

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


Use event structure to catch the button click event.

in the event, call "System Exec.vi" with 

mspaint.exe -p imagePath

as command line.

 

George Zou
0 Kudos
Message 11 of 22
(772 Views)

See attached VI.

 

 

George Zou
0 Kudos
Message 12 of 22
(753 Views)

try to  create a subvi with the code I shared before and pass the file path into it and setup the vi to print the  front panel after execution. 

Include that subvi into the event structure you shared instead of using the System exec. 

 

0 Kudos
Message 13 of 22
(736 Views)

I know that I can print pictures in the above way, but it will generate a word file.
Is there any way to print pictures directly as below instead of indirectlyhelp.png

0 Kudos
Message 14 of 22
(729 Views)

Thank you for your suggestion. I have tried it. It can print, but I want to use the printer directly to output the label, which requires me to choose againhelp.png

0 Kudos
Message 15 of 22
(728 Views)
  • please

  • Looking forward to your reply

  • help.png
0 Kudos
Message 16 of 22
(728 Views)

This is an effective method, but I do not want to save the image locally, but can print out when generated, if you have a better way, looking forward to your replyhelp.png

0 Kudos
Message 17 of 22
(724 Views)

like this

help.png

0 Kudos
Message 18 of 22
(724 Views)
  • Can you give me an example code? Thank you very much

0 Kudos
Message 19 of 22
(722 Views)
  • I didn't want anything other than pictures,help.png

0 Kudos
Message 20 of 22
(718 Views)