View previous topic :: View next topic |
Author |
Message |
Richard Besemer
Joined: 18 Apr 2009 Posts: 8
|
Posted: Tue Apr 21, 2009 2:49 am Post subject: Accessing Printers |
|
|
Hi,
I wish to WRITE to one of several printers connected to USB ports. How do I get UNIT numbers for these printers? I have tried to OPEN 'LPT1' but this did not work (probably because the printers are on USB ports). I have tried to OPEN a file with the printer name and OPEN a file with USB002. Nothing seems to work. How do I write to my printers?
Thanks for the help. |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8210 Location: Salford, UK
|
Posted: Tue Apr 21, 2009 9:18 am Post subject: |
|
|
There will probably be a way to do this via the "Open printer" common dialog that is available in ClearWin+.
See in ftn95.chm under Win32 platform->ClearWin+ -> Usiing the printer ->Selecting a printer |
|
Back to top |
|
 |
Richard Besemer
Joined: 18 Apr 2009 Posts: 8
|
Posted: Tue Apr 21, 2009 10:18 pm Post subject: Thanks |
|
|
Took a while to become familiar with winio@ function but the 'PRINTER_OPEN' call works great. Thanks a lot for taking the time to help this 'old' FTN main frame programmer out.
Richard |
|
Back to top |
|
 |
LitusSaxonicum
Joined: 23 Aug 2005 Posts: 2402 Location: Yateley, Hants, UK
|
Posted: Wed Apr 22, 2009 11:07 am Post subject: |
|
|
Can I also suggest looking at HTML_PRINTER_OPEN as this gives you some additional layout and formatting options (say for headings).
This is useful:
Code: | CALL SET_CLEARWIN_STRING@ (PRINTER_DOCUMENT,
& 'Output from My Program') |
as you can identify things more easily in the print queue if they are individually named.
The association of the printer with its port (e.g. USB) is done by Windows, although my recollection is that sending stuff to LPT: still gets you to the default printer - I abandoned that when I discovered what you have just found out.
Eddie |
|
Back to top |
|
 |
|