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:
00172057
Vues:
27
Hi David,

just to comments on your code...

> create cursor temp1 ( mForms m )

Should be

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"),"{","{{}")

Christof
--
Christof
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform