Re: [U2] How do you verify windows printer is good before fatal error by PRINTing to a bogus printer.
Jeff Schasny <[email protected]>
| Newsgroups | gmane.comp.db.u2.general |
|---|---|
| Message-ID | <[email protected]> |
I was assuming, based on the fact that he is using SETPTR to address which printer he is directing the data to, that he was looking at queues available to the machine since that is what SETPTR does. Wols Lists wrote: > On 28/01/14 15:07, Jeff Schasny wrote: > >> SPOOL -LIST will show you all the print queue names >> > > Is that all the printer names known to U2, or all the printer names > known to the network? > > In Chuck's example, this particular printer will never have been > declared to U2 - I did this all the time. The only printer UV was told > about was DEFAULT, which didn't exist ... > > In fact, I suspect this syntax will list all the printers known to the > server on which U2 is running, which could easily NOT include a valid > printer the user is trying to print to ... > > Cheers, > Wol > >> Charles Stevenson wrote: >> >>> SETPTR 0,80,60,3,3,1,AT \\BAD\NAME >>> seems to execute w/o throwing an error. >>> but an actual PRINT statement yields a fatal error: >>> >>> Program "PRT": Line 2, Printer name \\BAD\PRINTERNAME is not >>> recognized by the system. >>> >>> I'd like to verify we're printing to a good printer *before* >>> attempting to do so. >>> Execute some DOS command, maybe? >>> >>> _______________________________________________ >>> U2-Users mailing list >>> [email protected] >>> http://listserver.u2ug.org/mailman/listinfo/u2-users >>> . >>> >>> > > _______________________________________________ > U2-Users mailing list > [email protected] > http://listserver.u2ug.org/mailman/listinfo/u2-users > > -- ------------------------------------------------------------------------ Jeff Schasny - Denver, Co, USA jschasny at gmail dot com ------------------------------------------------------------------------ _______________________________________________ U2-Users mailing list [email protected] http://listserver.u2ug.org/mailman/listinfo/u2-users