>I'm getting the 'Error Loading Printer driver' on the following, but only if the printer iv'e selected is not the default printer.
>I've made sure to replace the tag, tag2 fields with '', and eliminated everything from the expr field except for the orientation and copies tags. I've also reloaded the printer drivers, and if I use 'REPORT FORM xyz TO PRINTER PROMPT', it works. However, I want to ultimately store the printer names in a table so that the user does'nt have to select which printer (of 3 available) to use for every type of report...
>
>x = GETPRINTER()
>SET PRINTER TO DEFAULT
>SET PRINTER TO NAME '&x'
>REPORT FORM xyz TO PRINTER
>
>Any ideas on how to eliminate this problem?
Try just SET PRINTER TO (x).
We use this:
LOCAL laPrinters[1]
WAIT CLEAR
IF APRINTERS(laPrinters)!=0
SET PRINTER TO (GETPRINTER())
ELSE
WAIT WINDOW NOWAIT 'No Printers are defined in Windows'
ENDIF