From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
05-01-2006 03:23 PM
05-02-2006 12:49 PM
05-02-2006 01:01 PM
Nope, I'm pretty sure that's not the problem - the VI is definitely in memory - the front panel is open. The problem seems to come from the fact that neither the fully qualified name "Library Name.lvlib:Some VI to Print.vi" or the short name "Some VI to Print.vi" allow the function to find the vi if the vi is in a lvlib. If not in a lvlib, the name of the vi works fine as the argument and the panel prints.
Thanks,
Mark
05-03-2006 04:06 PM
Hello,
Ok, this could be a bug then, or at least something which should be considered and potentially changed. I'll attempt to recreate this now, but just for sanity, please post a screenshot or a simple example so I make sure to do EXACTLY what you're doing, in an attempt to recreate the problem.
Thanks and looking forward to your post!
Best Regards,
JLS
05-04-2006 03:52 PM
05-05-2006 12:47 PM
Print VI Front Panel in Greyscale
Best Regards,
JLS
07-24-2006 11:32 PM
The way I have solved this in the past (not because of LabVIEW 8 but because my print dialog needed additional options, was to create my own print dialog. Agreed it does not look like the fancy XP print dialog with pretty icons for all the printers but it does work and give my users the specific control they need. You have two Application property nodes, one returns the currently available printers and the other returns or sets the currently used printer. This is enough to create a printer dialog in which you can select the printer to use. Then have a LabVIEW front panel setup to be the printout you want and configure it to print when it completes. Make that VI initilialize all controls properly and then finish. From you own print dialog call this print VI.
@mesmith-nm wrote:
JLS,
Thanks for the interest in my question - I also posed this question to NI and the application engineer sent this as part of his reply
"As you know, lvlibs are brand new in LabVIEW 8, and the VIPrintPanelToPrinter function is quite ancient and hasn't been commonly used since the introduction of VI Server. Based off of our initial investigation, it appears that the VIPrintPanelToPrinter function does not have the infrastructure to accommodate lvlibs and I have created a bug report for R&D to investigate this issue further and to attempt to fix it for future releases."
So the short answer is it can't be done. But does anybody have a way they handle print dialogs (which is why I want to use the Print Panel to Printer.vi - it can open a native Windows print dialog) that works for them? I would be curious to see how others do it.