Jump to content

LabVIEW exe that won't promt to print


Recommended Posts

I have an exe of a VI that we use to test air handling products at my work. Once a test is sucessfully completed, the VI prints 3 labels to a label printer. This all works fine. Recently, I tried adding an SMTP e-mail procedure to e-mail me this label (in an .xls file format) - this works, but also e-mail me a PDF of one of the graphs (all data gets sent to a blackberry phone as well, and that cannot open an .xls file formatted graph, the data is fine, but the graphs won't display). In the VI, using the "Print Report.vi" command, a pop-up will come up and ask me where I'd like to save my PDF, and this all works fine - it will e-mail me this file as well. BUT the pop-up never happens in the exe and the program gets an error when it trys to e--mail me this PDF file that doesn't exist (at least in the directory from which the exe is looking for it.

Any advice?

Thanks,

Andrew

Link to comment

QUOTE

at least in the directory from which the exe is looking for it.

Do you know what directory that the .exe looking for the file?? You could just save the file there....

Also, check how you have the popup set up to "pop-up", it may not be configured properly or maybe you are not initializing the stop button and it is always set to true stopping the vi, ie closing it immediately??? Just throwing out ideas, I cant say too much without a picture or vi or more information.

Link to comment

QUOTE (jenssona @ Dec 10 2008, 07:18 AM)

I have an exe of a VI that we use to test air handling products at my work. Once a test is sucessfully completed, the VI prints 3 labels to a label printer. This all works fine. Recently, I tried adding an SMTP e-mail procedure to e-mail me this label (in an .xls file format) - this works, but also e-mail me a PDF of one of the graphs (all data gets sent to a blackberry phone as well, and that cannot open an .xls file formatted graph, the data is fine, but the graphs won't display). In the VI, using the "Print Report.vi" command, a pop-up will come up and ask me where I'd like to save my PDF, and this all works fine - it will e-mail me this file as well. BUT the pop-up never happens in the exe and the program gets an error when it trys to e--mail me this PDF file that doesn't exist (at least in the directory from which the exe is looking for it.

Any advice?

Thanks,

Andrew

Andrew,

Sure sounds like the app builder is removing the front panel for the Print Report.vi. If it's not set as a Startup VI in the build specification, then it gets its panel removed. Go to the Source File Settings in the App Builder and disable the Remove Front Panel for this VI (the Print Report.vi) and rebuild. This might be all you have to do.

Mark

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.