replica nfl jerseysreplica nfl jerseyssoccer jerseyreplica nfl jerseys forums.silverfrost.com :: View topic - Accessing Printers
forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Accessing Printers

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
Richard Besemer



Joined: 18 Apr 2009
Posts: 8

PostPosted: Tue Apr 21, 2009 2:49 am    Post subject: Accessing Printers Reply with quote

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
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 8208
Location: Salford, UK

PostPosted: Tue Apr 21, 2009 9:18 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
Richard Besemer



Joined: 18 Apr 2009
Posts: 8

PostPosted: Tue Apr 21, 2009 10:18 pm    Post subject: Thanks Reply with quote

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
View user's profile Send private message
LitusSaxonicum



Joined: 23 Aug 2005
Posts: 2402
Location: Yateley, Hants, UK

PostPosted: Wed Apr 22, 2009 11:07 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group