Differences between Foxpro 2.0 and Foxpro 2.6 for DOS & Windows
>>> This still leaves one of my questions unanswered. I want to know
>>>about mutiple type sizes in my PRINTED output which is the only reason
>>>I wanted to step up a version in the first place.
>And how are you wanting to achieve these multiple type sizes? Using
>printer drivers? Since FPD 2.0 offers the same basic printer driver
>functionality as FPD 2.6, I'd say the upgrade won't help you, unless
>there are some more current printer drivers in 2.6.
>BTW, I usually hard code my reports in FPD when I want fancy fonts.
>It's a lot of work though, but the output is nice.
One more way to create a fancy report in FPD is to use report template from a
word processor. Say, you want a report with a white-on-black header, and all
your data in some fancy font bold. Create a document in your favorite word
processor, substituting a unique character combination with ID for any data (I
use #nnn, where nnn is a key reference to a table of data substitutions). Print
this document to a file (template). Now a program
to print the report may look
like this (pseudo-code):
read a page of the template file into m.TEMPL
nn = AT("#",m.TEMPL) && position of the first "#" in m.TEMPL
DO WHILE nn > 0
write SUBSTR(m.TEMPL,1,nn-1) to output file
m.TEMPL = SUBSTR(m.TEMPL,nn+1)
IF LEFT(m.TEMPL,3) are digits
m.key = LEFT(m.TEMPL,3)
m.TEMPL = SUBSTR(m.TEMPL,4)
m.var = whatever is in reference table with the key
write EVAL(m.var) to output file
nn = AT("#",m.TEMPL)
After that just print output file:
COPY output_file TO PRN
[ When replying, remove *'s from address ]
Alexandre Pechtchanski, Systems Manager, RUH, NY