General information
Category:
Reports & Report designer
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only