Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to Print .PRN File?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00171890
Message ID:
00172071
Vues:
32
Christof,

Happy New Year!

Good catches since I don't need codepages I forget about that. HP PCL commands don't use the troublesome braces. You can also use the poorly documented {LBRACE} and {RBRACE} characters.

> create cursor temp1 ( mForms m NOCPTRANS)
>
>because the file might contain binary characters that might be affected by some codepage translation.
>
>> ??? "" + temp1.mForms && can't ??? a memo directly so make it a string
>
>And this should be STRTRAN(temp1.mForms,"{","{{}", because ??? will interprete anything in curly brackets as a printer code and display a syntax error, if it can't find the closing "}". BTW, in VFP 6 you can use
>
> ??? STRTRAN(FILETOSTR("File.PRN"),"{","{{}")
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform