Printing in APL+WIN

This is a discussion on Printing in APL+WIN within the APL forums in Programming Languages category; I am looking for a way to print to a network printer that is similar to how I print to LPT1. To print to LPT1, I am tieing it as if it were a file: 'LPT1' (quad)ntie ¯1 Then I simply (quad)nappend to this "file". Works great for the project I am on. I have played around with the printers method and that will work but not quite the way I want. I have a bunch of files that I open through APL, then spool to LPT1 tied as a file. There are control codes (PCL5) that allow the file ...

Go Back   Application Development Forum > Programming Languages > APL

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 05-21-2004, 01:57 PM
Mark
Guest
 
Default Printing in APL+WIN

I am looking for a way to print to a network printer that is similar
to how I print to LPT1. To print to LPT1, I am tieing it as if it
were a file:

'LPT1' (quad)ntie ¯1

Then I simply (quad)nappend to this "file". Works great for the
project I am on. I have played around with the printers method and
that will work but not quite the way I want. I have a bunch of files
that I open through APL, then spool to LPT1 tied as a file. There are
control codes (PCL5) that allow the file to be printed correctly from
DOS. I am able to tie my network printer, but I can't seem to nappend
to it. Is this possible?

I tried the following:

'\\servername\\iR5000-PS' (quad)ntie ¯1001

This works, but when I try to append I get:

XFHOST ERROR SetFilePointer 2023 0 87 The parameter is incorrect.

Can anyopne suggest a solution? As a last resort, I can use the
printers method and muck around with the files, but I'd rather find a
solution along these lines. Sorry for the ramble.
Reply With Quote
  #2  
Old 05-21-2004, 02:34 PM
LatLong
Guest
 
Default Re: Printing in APL+WIN

I've not tried this, but the manual has the following example using []ARBIN:

Examples:

Send data directly to the printer; the outport of ¯1 specifies LPT1.

'LPT1' []NTIE ¯1

¯1 []ARBIN 'ABCDE',[]tcnl









"Mark" <mbiglow@excite.com> wrote in message
news:4b899ebc.0405210957.2efbbcc6@posting.google.c om...
> I am looking for a way to print to a network printer that is similar
> to how I print to LPT1. To print to LPT1, I am tieing it as if it
> were a file:
>
> 'LPT1' (quad)ntie ¯1
>
> Then I simply (quad)nappend to this "file". Works great for the
> project I am on. I have played around with the printers method and
> that will work but not quite the way I want. I have a bunch of files
> that I open through APL, then spool to LPT1 tied as a file. There are
> control codes (PCL5) that allow the file to be printed correctly from
> DOS. I am able to tie my network printer, but I can't seem to nappend
> to it. Is this possible?
>
> I tried the following:
>
> '\\servername\\iR5000-PS' (quad)ntie ¯1001
>
> This works, but when I try to append I get:
>
> XFHOST ERROR SetFilePointer 2023 0 87 The parameter is incorrect.
>
> Can anyopne suggest a solution? As a last resort, I can use the
> printers method and muck around with the files, but I'd rather find a
> solution along these lines. Sorry for the ramble.



Reply With Quote
  #3  
Old 05-24-2004, 05:22 PM
Mark
Guest
 
Default Re: Printing in APL+WIN

Nice. Sometimes we (I) miss the obvious solutions. Thanks.
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 09:35 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.