Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OpenResource error
Message
De
05/01/2006 21:08:34
Paul Weisberg
White Mountain Software
Saskatoon, Saskatchewan, Canada
 
 
À
05/01/2006 18:07:55
Paul Weisberg
White Mountain Software
Saskatoon, Saskatchewan, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01083844
Message ID:
01083892
Vues:
9
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?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform