Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Report edit / preview with reportbehavior 90
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Vista
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01274028
Message ID:
01274774
Vues:
10
Hi John,

I didn't see the problem because I was testing from the command window. To workaround it, add SAVE clause to the REPORT command
REPORT FORM .... SAVE
>Sergey,
>I am able to reproduce the behavior as follows:
>I created a program TEST.PRG (see below). Note that this happens on any report I run.
>
>When TEST.PRG is run c_work.dbf is opened and the modify report is then run.
>When the menu selection View/Preview is run the action is normal. However, when you exit the Preview window the program does not return to the edit and instead continues on to the next line in TEST.PRG.
>
>To fix the problem I added a report form xxx preview under the modify report with a do while around them and a messagebox to drop out. I found that if I only had the modify report line and it looped back after leaving a preview VFP would get very confused and crash.
>
>I am still running Service Pack 1. Could Service Pack 2 have different action? After reading about the bug in the reprinting report headings I did not install it. What version are you running?
>
close all
>SET reportbehavior 90
>
>* Vars the report needs
>s_glacct = 'XXXX-XX'
>mglacct = ''
>mtglacct = ''
>mtgldesc = 'gldesc'
>mtamt = 100.34
>XXCUNAME = 'TEST REPORTING'
>
>* open report cursor (saved from a previous run to a table)
>use C_work
>
>xxsyspath = sys(5)+sys(2003)
>mfrxfile = 'RPTAACIS'
>modify report (xxsyspath + '\rpts\' + mfrxfile)
>
>wait window 'past modify report'
>Thanks for your time,
>John.
>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform