Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error loading printer driver
Message
De
28/06/2000 14:29:10
 
 
À
28/06/2000 14:07:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00385950
Message ID:
00385963
Vues:
20
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform