Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hacking a .frx file...

Status
Not open for further replies.

VictorAnderson

Programmer
May 22, 2000
15
US
I'm trying to write what I was hoping would be a simple program to add one line at the top of a report.

What I did was make the report, then made a copy of it and used the report designer to add the line, figuring it would be simple enough to compare the two .frx tables and see what was differnt.

My only problem (that I know of thus far anyway) is with the vpos field that will have to be changed for all the existing stuff on the report. I can't seem to find any type of consistant mathmatical forumla to modify the fields...surely there is some way to do this. Anyone have any ideas?

Thanks,
Victor [sig]<p>Victor Anderson<br><a href=mailto:victoranderson@gmx.com>victoranderson@gmx.com</a><br><a href= Guru</a><br>ICQ# - 14847018[/sig]
 
The VPOS field is relative to the band you are in.
The size of the lines are relative to the size and height of the font.

Therefore to add a line to a report you and alter data in the VPOS field you would have to know:
1. The Height of the Band. (your additions can not exceed this value)
2. The Type of Font
3. The point setting of the font.
4. The Height of the largest character in the font + the space between the lines. (Normally (Font Height / Point size)*2 )
[tt]
Example Font Arial New Courrier
point size 8 = 0.16 inch 0.15
point size 20 = 0.33 inch 0.31
point size 22 = 0.35 inch. 0.33
[/tt] [sig]<p>David W. Grewe<br><a href=mailto:Dave@internationalbid.net>Dave@internationalbid.net</a><br>[/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top