08-04-2005 06:50 AM
08-05-2005 10:59 AM
This can be done easily using ActiveX and the Microsoft Common Dialog Control 6.0 server class to call the Windows printer dialog. Follow these steps to get started:
1. Browse to the ActiveX palette in LabVIEW: All Functions >> Communications >> ActiveX.
2. Place an Automation Open VI on the block diagram. Right click the Automation Refnum input and select Create >> Constant.
3. Right click the constant and select Select ActiveX Class >> Browse. Browse to the Microsoft Common Dialog Control 6.0 v1.2 Type Library and select the object MSComDlg.ICommonDialog.
4. You can now wire the Automation Refnum from the Automation Open VI to property nodes to set various properties for the printer window, and then to an invoke node, where you can select the function Show Printer to pop up the printer dialog.
I'll attach an example .llb file that demonstrates this in practice. This example is not yet fully tested, but I ran it successfully on my machine, and it will definitely help you get started.
08-22-2005 04:06 PM
08-25-2005 01:20 PM
02-04-2006 08:26 AM
Hello,
I have problem with print dialog box. I tried the way mentioned above (ActiveX-MSComDlg.ICommonDialog), but an error occured.Does anybody know why it happened?
I tried also this way:
http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3DD2556A4E034080020E74861&p_...
It displays the diloag, but I don't know how to print something.
Is there other way to call print dialog?
Thank you
I'm using LW 7.1, WXP SP2
02-04-2006 08:39 AM
02-06-2006 10:19 AM
05-17-2018 10:58 AM
I want to control printer names of print dialog box. When I invoke print dialog box using .net constructor node. It is showibg me 4-5 printer options. I want it to control to 1 option only which will be default printer. Ho to control it??
-Devashri