Previous Thread
Next Thread
Print Thread
Available printers #1198 03 Mar 18 07:50 PM
Joined: Mar 2005
Posts: 494
Ty Griffin Offline OP
Member
OP Offline
Member
Joined: Mar 2005
Posts: 494
Hey all... here's an interesting question. Or at least I think so.

If I say to A-Shell (at the dot):

PRINT abc=xyz.txt

where xyz.txt is a real and present file

and abc is NOT a printer on my Windows system

Then I get (after clearing the error message) the Windows printer selection dialog box--which is exactly what I wanted; now I can see all the printers available to me.

The question for y'all is:

Is there a way to find out which printers are available that is better/faster/easier than above?

Re: Available printers #1199 05 Mar 18 02:24 PM
Joined: Jun 2001
Posts: 3,406
J
Jorge Tavares - UmZero Online Content
Member
Online Content
Member
J
Joined: Jun 2001
Posts: 3,406
print a=xyz.txt

laugh


Jorge Tavares

UmZero - SoftwareHouse
Brasil/Portugal
Re: Available printers #1200 06 Mar 18 01:21 PM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
That is technically correct, and possibly optimum unless we happen to know there is a file with a shorter name available. (Otherwise the file-not-found error supersedes the printer-not-found response.)

I'm considering adding a prompt at the end of the help display (print/?), perhaps "Hit ? again to display Windows printer selection dialog". But presumably the reason why you want to see which printers are available is that you actually want to print the file to one of them. In which case, why not just use the built-in (but possibly undocumented?) "PROMPT" printer, i.e.

.print prompt=xyz.txt

You can still cancel the operation if you didn't really want to print.

So unless you think having a direct link from the help display to the printer selection dialog would be too cool for words, maybe the only enhancement needed here is to the text of the help display to note the "PROMPT" option.

Re: Available printers #1201 06 Mar 18 01:40 PM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
Here's an update with the above-mentioned revision to the help display, and with the added bonus of activating the vertical scroll bar automatically if the help display scrolled off the top of the screen.

PRINT.LIT 3.3(130)

(Or just use UPDCUR.LIT)


Moderated by  Jack McGregor, Ty Griffin 

Powered by UBB.threads™ PHP Forum Software 7.7.3