LabVIEW normally prints to the default printer. Can anyone help with a vi to select the printer before printing the frontpanel or diagram in an application?
Hi Peter, a way to do it is to use Windows API. - for Win95, use OpenPrinter()/SetPrinter() - for 3.1/95/NT use WriteProfileString() You can find details in MSDN Library - articles Q135387 and Q140560.
Thanks a lot Dennis for this useful routine. It works fine, the only problem is that the diagram is password protected. Do you know whom to contact for the source code?
These 2 VIs uses ActiveX calls to get the printer list and set the default printer.
Jean-Pierre Drolet Scientech R&D
"Peter Vijn" a ?crit dans le message news: 506500000008000000F4290000-998975444000@exchange.ni.com... > LabVIEW normally prints to the default printer. Can anyone help with a > vi to select the printer before printing the frontpanel or diagram in > an application? > > Peter Vijn, Organon Newhouse, Scotland