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:
00172057
Views:
26
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform