Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FRX Hacking problems
Message
From
18/08/2008 18:57:16
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01339646
Message ID:
01339786
Views:
13
>>>I'm trying to add labels and fields to a 'template' frx by grabbing a sample record from the frx using scatter name, changing uniqueid, vpos, hpos and expr (and Name for fields), then inserting a new record using append blank / gather from name memo.
>>>
>>>If I then try to open the frx in the report designer, I'm told the frx is invalid.
>>>
>>>Any tips here?
>>>
>>>Michael
>>
>>You are using scatter name memo, right? Another thing, open an frx as table and notice that the last few records seem to be "special", starting with objtype 23 followed by records that have to do with cursor, dataenvironment, relations and who knows what else. Try to keep those records at the end; don't do a simple append but create a new frx with the new record before those last few, even inserting it the right place within vpos/hpos order.
>>
>>Alex
>
>Hi, Alex.
>
>Yes, I'm doing scatter name , and I've copied types 23 and 25 to the end and packed. Any other suggestions?

Are you aware about the idosincracies of object positioning in reports? If not I can send you a copy of migrating program I wrote (from FPDOS to VFP. It is not the same but there is useful information in it).

Probably the best way to learn about frx is to add the label manually to the report without touching anything else and compare the two tables. Later do same for field. If you change the height of a band that impacts the vpos of fields below it. It is rather tricky.

Alex
Previous
Reply
Map
View

Click here to load this message in the networking platform