Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing ? after SET PRINTER ON.
Message
De
05/05/2009 16:31:43
 
 
À
05/05/2009 07:27:35
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Divers
Thread ID:
01397871
Message ID:
01398019
Vues:
39
>>Hi All:
>>
>>The following doesn't seem to work in Windows XP. i.e the printer doesn't fire away and say 'Hello'.
>>
>>In Windows Vista, the system asks you to save he data to a file with an .XPS extension.
>>
>>So the question is: How can I get the printer to print without any fancy stuff.
>>
>>
>>SET PRINTER on
>>? 'hello'
>>SET PRINTER off
>>
>>
>>EJECT doesn't make it work, either.
>>
>>Thanks,
>>
>>Yossi
>
>I am not sure about all the details... I would have to study my own code in more detail, and I am in a hurry now.
>
>For now, perhaps you can try to include the following commands:
>
>
>set printer to name ... && name can be obtained with getprinter()
>SET PRINTER on
>? 'hello'
>SET PRINTER off
>set printer to && This might reset the printer, and thus force printing.
>
Hilmar:

The SET PRINTER TO is what did the trick, this also works:
>>SET PRINTER on
? 'hello'
SET PRINTER off
SET PRINTER to
Thanks!

Yossi
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform