06-07-2023 10:01 AM
@田淇予 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.
06-07-2023 09:30 PM
See attached VI.
06-08-2023 06:44 AM
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.
06-08-2023 08:17 AM
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 indirectly
06-08-2023 08:25 AM
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 again
06-08-2023 08:28 AM
please
Looking forward to your reply
06-08-2023 08:32 AM
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 reply
06-08-2023 08:33 AM
like this
06-08-2023 08:34 AM
Can you give me an example code? Thank you very much
06-08-2023 08:36 AM
I didn't want anything other than pictures,