Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Print .PRN File?
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00171890
Message ID:
00172071
Views:
31
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform