>Hi all,
>
>I have way too many reports written in FoxPro 2.6 DOS. They weren't created using the report designer, they just spit out the data to the printer directly via the "set device to print" command.
>
>The real problem is the escape commands used to set the CPI, etc. When they are used the reports come out looking like gobbledy-gook.
>
>There must be a way to run these reports under VFP7 without having to convert each and every one of them.
>
>Can anyone point me to more information or possibly a solution to this problem?
If you're currently creating the report using the ?/??/??? type output commands, you might consider using my DIRPRTCLS class, which bypasses the GDI entirely for its output. The class has a DocWrite method that is a near-equivalent replacement for ??? (it takes a string as a parameter and outputs it exactly as given; to create the equivalent of a ? command, you'd prefix the string with CHR(13)+CHR(10); you might want to create a subclass or a wrapper to adorn the class with a ? replacement to make your conversion easier.)
>
>Thanks in advance!
>
>Hugh