I'm very glad that this will be usefully for you. As I say, the only problem is convert the printer name to use "_". I preparing my own stack printer options to print using the shell commands.
Here you can found more info with more deep. http://www.cups.org/doc-1.1/sum.html When I have something visible I send you for if can be usefully. Salut, Josep El 20/11/2009, a las 6:14, Phil Davis-5 [via Runtime Revolution] escribió: > This is the best so far! > > Phil Davis > > > > JosepM wrote: > > > Hi, > > > > Also you can use from the shell: > > > > lpstat -p --> to see the available printers > > lpstat -d --> to know the default printer name > > > > and to send directly to the printer: > > > > lpr -P <name of the printer> -o page-ranges=1 -o landscape <path > to the file > > to print> > > > > If you check the lpr command in CUPS manual you can see a lot of > options to > > control the job sended to the printer. The question is capture the > name of > > the printer or class. > > The name use "_" for spaces, assigning the name directly don't > work, almost > > for me. > > > > > > Salut, > > Josep > > > > -- > Phil Davis > > PDS Labs > Professional Software Development > http://pdslabs.net > > _______________________________________________ > use-revolution mailing list > [hidden email] > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > > > View message @ > http://n4.nabble.com/knowing-if-a-printer-is-connected-tp624188p624409.html > To unsubscribe from Re: knowing if a printer is connected, click here. > -- View this message in context: http://n4.nabble.com/knowing-if-a-printer-is-connected-tp624188p624552.html Sent from the Revolution - User mailing list archive at Nabble.com. _______________________________________________ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution