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:
01573732
Vues:
72
>>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, "{", "{{}")
>
Excellent! Thank you. Google didn't turn it up for me but I figured there had to be an answer.
Paul R. Moon
Business Software Solutions
paul@businessoftware.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform