Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OpenResource error
Message
From
05/01/2006 21:08:34
Paul Weisberg
White Mountain Software
Saskatoon, Saskatchewan, Canada
 
 
To
05/01/2006 18:07:55
Paul Weisberg
White Mountain Software
Saskatoon, Saskatchewan, Canada
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01083844
Message ID:
01083892
Views:
8
I can answer my own question. There are two issues here. The VFP9 report previewer does not like the use of a resource file (at least not when its included in your project as mine is). You need to do a SET RESOURCE OFF before calling the report previewer. Secondly, the previewer turns the resource file back on so you'll need to do this just before you open the report previewer. It works like a charm in my case.


>I am getting an error in VFP9 report previewer just as the previewer is opening for the second time:
>
>Table has no index order set
>Line 0 in openresource()
>frxpreviewform.Error()
>
>I have spent hours trying different workarounds. I have it tracked down to restoring a view. If I restore the view this error is guarenteed. Here are my exact steps:
>
>Open modal form, open data environment etc
>In INIT() method save the current view
>Run a report
>Previewer works fine
>Restore the view (because the reports do lots of damage)
>Run the reports again
>Immediate error as the previewer is opening.
>
>Does anyone have any ideas?
Previous
Reply
Map
View

Click here to load this message in the networking platform