> Hi,
>
> I am looking for a function to tell me the name and/or location of the default installed printer on the enduser pc. Any VFP or API call for this?
> Thanks,
> Koen
If you want to use API:
DECLARE INTEGER GetDefaultPrinter IN winspool.drv STRING @ cBuffer, INTEGER @ nBuffer
cPrinter = space(1024)
nPrtBuffer = 0
?GetDefaultPrinter( @cPrinter, @nPrtBuffer)
*The other way around is to use SetDefaultPrinter()
DECLARE Integer SetDefaultPrinter in winspool.drv STRING cPrintername
?SetDefaultPrinter( getprinter() )
HTH
Boudewijn Lutge®ink
http://www.vfpdevelopers-online.comThe attitude of "
An eye for an eye and a tooth for a tooth" will make this world toothless and blind (Gandhi)