AnsweredAssumed Answered

vrf how to print to non default printer

Question asked by VRFuser on Jun 4, 2004
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"><META content="MSHTML 6.00.2800.1276" name=GENERATOR></HEAD><BODY><DIV><FONT face=Arial color=#0000ff size=2><SPAN class=789182418-04062004>I am assuming you have specific data to send to the printer.  Use the "To File" object (I/O -> To -> File) and put COM4 as the filename.  If it is connected to another PC and is accessible from the network, then the filename would be <A href="file://\ComputernamePrintername">\ComputernamePrintername</A> (don't pay attention to the underline).</SPAN></FONT></DIV><DIV><FONT face=Arial color=#0000ff size=2><SPAN class=789182418-04062004></SPAN></FONT> </DIV><DIV><FONT face=Arial color=#0000ff size=2><SPAN class=789182418-04062004>Note that this method won't work if you want to print from a "Print" control pin in a function call, or from a print selection from a contextual menu.</SPAN></FONT></DIV><BLOCKQUOTE>  <DIV><FONT face="Times New Roman" size=2>-----Message   d'origine-----<BR><B>De:</B> Carew, William   [mailto:william.carew@honeywell.com]<BR><B>Date:</B> 3 juin 2004   19:38<BR><BR></FONT></DIV>  <DIV><FONT face=Arial size=2><SPAN class=483532423-03062004>System is win2000   pro</SPAN></FONT></DIV>  <DIV><FONT face=Arial size=2><SPAN class=483532423-03062004>VEE version is   5.01</SPAN></FONT></DIV>  <DIV><FONT face=Arial size=2><SPAN class=483532423-03062004>printer is not   default</SPAN></FONT></DIV>  <DIV><FONT face=Arial size=2><SPAN class=483532423-03062004>      com4, serial port, small_label</SPAN></FONT></DIV>  <DIV><FONT face=Arial size=2><SPAN class=483532423-03062004>      generic text only driver</SPAN></FONT></DIV>  <DIV><FONT face=Arial size=2><SPAN class=483532423-03062004>      physically located on another win2000 system</SPAN></FONT></DIV>  <DIV><FONT face=Arial size=2><SPAN   class=483532423-03062004></SPAN></FONT> </DIV>  <DIV><FONT face=Arial size=2><SPAN class=483532423-03062004>There does not   seem to be an easy way to print</SPAN></FONT></DIV>  <DIV><FONT face=Arial size=2><SPAN class=483532423-03062004>a text file (with   out font codes etc) to a non default</SPAN></FONT></DIV>  <DIV><FONT face=Arial size=2><SPAN class=483532423-03062004>printer on my   machine. Any ideas?</SPAN></FONT></DIV>  <DIV><FONT face=Arial size=2></FONT> </DIV>  <DIV><SPAN class=483532423-03062004><FONT face=Arial size=2>My only solution   seems to be:</FONT></SPAN></DIV>  <DIV><SPAN class=483532423-03062004><FONT face=Arial size=2>User changes   default printer to the selected "small_label" printer.</FONT></SPAN></DIV>  <DIV><SPAN class=483532423-03062004><FONT face=Arial size=2>Run the vee   program that prints using:</FONT></SPAN></DIV>  <DIV><SPAN class=483532423-03062004><FONT face=Arial size=2>execute program   (PC)</FONT></SPAN></DIV>  <DIV><SPAN class=483532423-03062004><FONT face=Arial size=2>run   style            =   minimized</FONT></SPAN></DIV>  <DIV><SPAN class=483532423-03062004><FONT face=Arial size=2>wait for prog exit   = yes</FONT></SPAN></DIV>  <DIV><SPAN class=483532423-03062004><FONT face=Arial size=2>prog with params =   notepad /p c:     empfilename.txt</FONT></SPAN></DIV>  <DIV><SPAN class=483532423-03062004><FONT face=Arial size=2>working directory   = c:     emp</FONT></SPAN></DIV>  <DIV><SPAN class=483532423-03062004><FONT face=Arial size=2>  <DIV><SPAN class=483532423-03062004><FONT face=Arial size=2>User changes   default printer back to original   printer.</FONT></SPAN></DIV></FONT></SPAN></DIV></BLOCKQUOTE>---<BR>You are currently subscribed to vrf as: rsb@soco.agilent.com<BR>To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".<BR>To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".<BR>To send messages to this mailing list,  email "vrf@agilent.com".  <BR>If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".</BODY></HTML>  

Outcomes