Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Converting DOS report to VFP
Message
 
 
To
11/10/2005 17:48:04
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01057933
Message ID:
01058186
Views:
14
>If you don't have the original DOS reports, you may just (backup the converted reports first and)
>
USE the.frx
>replace all vpos with vpos*1.05
>
>If you do have the originals (they may still be on the disk, under a slightly different extension), you may want to fiddle with the transprt.prg and rebuild convert.app (all in xSource.zip). It calculates the vpos (in 10000ths of inch) from the old vpos (in characters). The procedure where it does that is
>CVTREPORTVERTICAL(), and you actually need to adjust the g_rptlinesize, which is then calculated from the fontmetric() of the font you selected for conversion.
>If you look for g_rptlinesize, you'll find where it sets Courier New, 10, N as default font for the reports. You may choose another font, fontsize etc, rebuild the convert.app and give it another try, or you may want to fiddle deeper with the way it calculates the vPos.

Interesting. We do have the original DOS report. I pointed my colleague to the thread, may be they can jump in with more details, because I haven't worked on this problem yet, just wrote about it <g>
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform