>Can anyone please show me some VFP5 code to get the default windows printer name with an API call?
>
>I know the following pure VFP code works:
>
>KEYBOARD "{ENTER}"
>cQueue = GETPRINTER()
>
>but it is rather annoying to see the print dialog box flash on the screen.
>
>Thanks,
David,
The follwong VFP code works too and it doesn't have any dialogs;
lcPrinter = SET("PRINTER",2)