Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set Printer To
Message
De
11/06/1999 14:15:19
 
 
À
11/06/1999 14:08:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00228905
Message ID:
00228908
Vues:
12
DOH! I didn't read the Help file close enough.

SET PRINTER TO [DEFAULT | NAME WindowsPrinterName]

I thought WindowsPrinterName was just explaining NAME. Thus thinking you replace NAME with the printer name.

Thanks.


>I am likely wrong, but isn't the syntax you need something like:
>
>set printer to name (cpname)
>
>???
>
>>Here is my problem. I want to programmatically change the printer the report is using.
>>
>>So in my report temp.frx I clear TAG and TAG2.
>>
>>Then I try this:
>>
>>----------
>>cPName = GETPRINTER()
>>
>>SET PRINTER TO cPName
>>
>>REPORT FORM temp NEXT 10 TO PRINT NOCONSOLE
>>----------
>>
>>It keeps using the default printer. Which is my HP Deskjet.
>>cPName is "Winfax" when I am testing.
>>
>>I am confused as to what purpose SET PRINTER TO has if it doesn't
>>change the printer.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform