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:
01274766
Vues:
11
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.



>Hi John,
>
>I do not see such behavior. A preview happily returns control back to the Report Designer after it's closed.
>
>>We have a central print PRG that all reports are run from. A PRG associated with each report is 1st run to gather the data and then if the print PRG sees the program running from the VFP command prompt (version(2) = 2) it does a modify report on the FRX. This has worked well for us for over 10 years!
>>
>>With 90 behavior if I select Preview from the top menu to view the report, it exits the modify report when the preview is finished. This did not happen with 80. I put a do while loop around the modify report command with a MessageBox to exit but this is awkward. Is there any way to not have the preview drop out of the edit?
>>TIA.
Beer is proof that God loves man, and wants him to be happy. - Benjamin Franklin
John J. Henn
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform