Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Report File is Invalid - Is this a bug?
Message
From
02/02/2004 17:10:26
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00872594
Message ID:
00873163
Views:
27
>Hmmm that is definitely weird I can repeat it in VFP8SP1 on my computer everytime. I have XP Pro as the OS, maybe that has something to do with it. Anyone else can repeat the problem?
>
>
>>I repeated all your steps under VFP8SP1 a few times and didn't get any errors.
>>
>>>1. Create a report, any report. Even one which is empty will suffice.
>>>
>>>2. Create a Modal Form, with a button. In the button click event, issue a Modify Report for the report you created in Step 1.
>>>
>>>3. When the report comes up, click the report toolbar and add some text.
>>>
>>>4. Now click on the calling form (outside the rerport preview window area)
>>>
>>>5. The report will prompt you if you want to save changes. If you press yes, you will get a Report File is Invalid error message. All the time. VFP 7 & 8
>>>
>>>7. If you open the report frx file as a table, you'll notice a record where the Expr column is empty, and the timestamp and the objcode columns having a value of zero. If you delete this record AND pack the frx table, the report is once again usable. OR if add text to the Expr column it opens again.
>>>
>>>Ideas/Opinions?


I can repeat it - VFP8SP1 + Win XP. As far as a solution I don't really have one. It seems the problem is with VFP tring to auto save when the report form doesn't have focus, aka another windows gets focus. If you include the SAVE command VFP won't try to autosave but that might cause other issues with your design of your app.
Charles

"The code knows no master." - Chuck Mautz
"Everybody is ignorant, only on different subjects." - Will Rogers
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform