Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How print in LPT1 and LPT2 in same datawindow 1

Status
Not open for further replies.

msminformatica

Programmer
Feb 18, 2003
2
AR
I can't set different port to same datawindow.
Thanks in advance.
Fede.
 
Well, my problems is this...
I´ve two ports in the same pc, LPT1 and LPT2 and I´ve two printers, one on the LPT1 port and another on the LPT2 port, I´ld like print in the LPT1 or LPT2 port when I need depend the transaction... but I don´t know how I can send the print job to LPT1 or LPT2.
Thanks in advance,
Fdrco.
msminformatica.
 
Why not just change the name of your printers? If you need to print to device1 then set that as your printer.


From the PRINTER Datawindow Object property:

The printer you select for a DataWindow does not affect the PowerBuilder default printer or the system default printer. To specify a network-connected printer, you must use a fully specified network printer name:

dw_1.Object.DataWindow.Printer = "\\net-print\pr-6"

Non-networked printer:
dw_1.Modify ('DataWindow.Printer="My LaserJet 3" ')


Olan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top