Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Report going to default printer no matter what the setti
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00929314
Message ID:
00929355
Vues:
8
Normally it will go to the default printer if 'MY PRINTER' is not found.
What kind of operating system? Mysekf I had problem with Server2003 and XP Pro workstation.

Try this:
LOCAL ARRAY laPrinter[1]
llPrinter = .F.
lnPrinter = APRINTERS(laPrinter)
lcPrinterName = ""
FOR i = 1 TO lnPrinter
IF AT( "My PRINTER NAME", ALLTRIM(laPrinter[i,1])) > 0
lcPrinterName = ALLTRIM(laPrinter[i,1])
llPrinter = .T.
EXIT
ENDIF
ENDFOR
IF llPrinter
SET PRINTER TO NAME (lcPrinterName)
ENDIF
Diane Robitaille eng.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform