Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Weird Printer Command Syntax Error
Message
De
26/08/2013 11:57:35
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP3
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01581421
Message ID:
01581432
Vues:
38
>>>Hi Gang!
>>>
>>>My fellow worker has this problem.....
>>>
>>>They have code which creates a string of data to send to a LaserPrinter using PCl commands.
>>>
>>>
>>>??? ESC + lcStringToPrint
>>>
>>>
>>>lcStringtoPrint is a string of data which has in it the NDC of a drug, the Rx number and the Quantity. The values are converted to ASCII codes to send to printer, so they won't be simple strings of just numbers.
>>>
>>>If the Quantity is 50, it prints the barcode.
>>>
>>>When it is 60, it throws up a Syntax Error
>>>
>>>Normally, about 98% of the time, the barcode prints just fine. But about 2 % of the time, given certain combonations of NDC, Rx and quantity, the barcdode will give a syntax error.
>>>
>>>
>>>Here is a sample of the string in the VFP Debugger....
>>>
>>>bad - quantiy of 60
>>>“Š 6s M |$z \{‹”
>>>
>>>good - quantity of 50
>>>"Š 6s M Nsb >]‹"
>>>
>>>Anything look amiss? Any thoughts ??
>>>
>>>
>>>Thanks!
>>
>>Is it maybe interpreting the backslash as an escape sequence? Just a WAG.
>
>I'll let him know. Thanks!


It's [{] problem. Don't know WHY "-)
m1 = "S( 6s M |$z \{‹"
??? m1  && Syntax error

m1 = "S( 6s M |$z \"
??? m1  && No problem
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform