Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Fix a Corrupt Report?
Message
From
11/07/2000 17:43:22
Cindy Winegarden
Duke University Medical Center
Durham, North Carolina, United States
 
 
To
11/07/2000 04:09:01
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00390640
Message ID:
00390991
Views:
10
Tim,

Start HexEdit (mine's in C:\Program Files\Microsoft Visual Studio\Vfp98\Tools\Hexedit\HexEdit.pjx)

Open the offending table (report in this case). Subtract 1 from the 5th byte.

More detailed directions:
Make a backup so you can mess around if you need to.
The number of records in the table is stored in the 5th and 6th bytes of the table header, in reverse order. The byte you need is under the column labeled "4."
Hex arithmetic can be tricky. Numbers after 9 are A, B, C, D, E, F, 10. Easy to subtract 1 if your 2 bytes aren't an even multiple of 16 so you don't have to "borrow" from the next digit.

Save and close. The problem should be solved.

This happens because Fox adds 1 to the record count in the header and then adds the new record, and if something happens in between there is a mis-match between the count in the header and the number of records.

Hope this helps. If you're not sure, post again.


>HI!
>
>A user sent my on of their reports. They said their PC crashed.....
>When I open the report file.
>It asks me if I want to COnvert the Report to 6.0 Format.
>
>If I try to open it as a table it says "not a table"
>
>Is there anything I can do for her to fix it?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform