Choosing a Printer

Choosing a Printer

Postby xProgrammer » Sun Mar 16, 2008 7:56 am

Hi Antonio

I am happily generating forms as postscript files and can print them and delete them via lpr. I would like to specify the printer that they are sent to. lpr supports this via the -P option. I wanted to get a list of printers bur GetPrinters() didn't seem to exist. I got a linker error. GetDefaultPrinter() didn't work either. I had a little go at

Code: Select all  Expand view
PRINTER oPrn
oPrn:Choose()


and got the dialog, but that doesn't seem to return a printer it wants to print a file you have already created using oPrn:Say (which isn't what I want to do).

Is there a way of getting a list of printer names?
Is GetPrinters() not in xHarbour (Linux version) or was it removed as part of FiveLinux build?
Or is there possibly a library missing from my build file?

Thanks
Doug
(xProgrammer)
User avatar
xProgrammer
 
Posts: 464
Joined: Tue May 16, 2006 7:47 am
Location: Australia

Return to FiveLinux / FiveDroid (Android)

Who is online

Users browsing this forum: No registered users and 4 guests