Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Find default windows printer
Message
De
26/02/2010 15:33:29
Andy Roth
Neyenesch Printers
Californie, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01451008
Message ID:
01451333
Vues:
27
>The closing quote is in the wrong place
>? SET("Printer", 2)
>
>
>>I have tried DefPrinter=Set('Printer,2')
>> which in Foxpro 9 should return the default windows printer but only returns the printer state of On or Off
>>I have tried Aprinter(TestPrinter,1) which is reported in Help to return a 5 column array hoping it would
>>show a column as to which printer was default but only return a 2 column array.
>>
>>What I am trying to do is to set the printer back to the default printer after using PrintName= getprinter() to send a report
>>to a selected printer.
>>
>>The program does a loop to printer extra pages if the user wants them and I did not want them to have to select the correct
>>printer with 2 part carbonless in it each time it went through the loop.
>>
>>But after the program executes it does not set the printer back to the default windows printer
>>
>>
>>Thanks for any help
>>Andy

Nice link
Thanks

Turns out it was DefPrinter=Set('Printer',2) not DefPrinter=Set('Printer,2')
Single quote in the wrong place
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform