Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error loading printer driver
Message
From
28/06/2000 14:29:10
 
 
To
28/06/2000 14:07:57
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00385950
Message ID:
00385963
Views:
19
>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
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform