Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Raw printing chokes on {
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 8
Divers
Thread ID:
01573725
Message ID:
01573730
Vues:
125
This message has been marked as the solution to the initial question of the thread.
J'aime (1)
>I am trying to send data directly out to a variety of different printers such as POS receipt printers, label printers, etc using Raw printing through the VFP ??? command. Recently a customer discovered that if any of the text being sent out includes the opening curly brace { then I get a syntax error. Try this command:
>??? "{"
>
>It doesn't work. Any way to work around this?
>
>Thanks!

From: http://fox.wikis.com/wc.dll?Wiki~??? :

Therefore, if you want to send CHR(123) to your printer, then you have to wrap it in another "{" and "}" pair. The easiest way is to do as follows:
cToPrint = " { ControlCode Some Text" + CHR(15) + "more Text { more ControlCodes"
??? STRTRAN(cToPrint, "{", "{{}")
Frank Camp
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform