10-21-2008 02:29 AM
Hello,
is it possible to call the standard windows print dialog with LabVIEW? Actually labview has all functions about selecting printers, page settings and so on. But it will be much easier, if the standard windows print dialog could be called directly.
Thanks a lot!
Le
10-21-2008 02:38 AM
You can call it using the ActiveX functions, I think...
Just try it out & post back here.
10-21-2008 03:59 AM
Sorry, not ActiveX, but using .Net functions.
There was some post a little while earlier regarding how to call the Font Dialog as modal on top of the VI. If you can search for it, then all you have to do is just to select the PrintDialog option for the .Net Class Constructor Node.
You can either invoke it as a modal or non-modal dialog using those set of VIs, that have the Windows DLLs present inside the wrapper SubVIs.
I ll try to post them, if I have...
10-21-2008 04:04 AM
06-09-2010 12:48 AM
Has this progressed any further? I would love a VI that pops up the standard Windows Print Dialog box and then returns the selected printer name as an output string.
Can't locate such a beast anywhere! Surprised this isn't part of the LabView VI library somewhere.
Thanks.
06-09-2010 02:51 AM
06-09-2010 05:16 PM
Sorry I should have made my question clearer!
Yes I agree the above VI is a great way to print a VI panel to the printer and the VI does have a "Show Printer Dialog" input. However, I can't seem to find a routine that returns selected print options (including printer choice) if you want to print a text file for example.
I find it weird that in one VI it has the "Show Printer Dialog" input, but in others there is nothing. eg "Print Report" VI.
06-10-2010 03:40 PM
I use this VI to show a PrintDialog in LabVIEW. The VI is a bit weird since it was in fact a combination of the functionality of Default Printer Property before this property was present and the printer dialog. To get a VI which would work like a printer dialog you would have to do something like this:
Unfortunately there seems no way to retrieve the landscape/portrait and similar other settings.
This has prompted me in the past to create my own print dialog that simply has a drop down selection box for the printer.
05-12-2014 12:05 PM
Thanks, this is a nice VI except you didn't wire out the CANCEL state and your VI is password protected so I can't do it either.
Would mind terribly to either repost with the cancel state wired out, OR remove the password?
Thanks.
RM
05-12-2014 12:50 PM
The VI you refer to is from NI. I can't unprotect it. And the called functionality in there is exactly like what the VI exposes. No Cancel state indication is possible. Sorry!