Choosing a Printer

Post Reply
User avatar
xProgrammer
Posts: 464
Joined: Tue May 16, 2006 7:47 am
Location: Australia

Choosing a Printer

Post by xProgrammer »

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

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)
Post Reply