Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Off record after print report
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00778294
Message ID:
00778503
Vues:
11
This message has been marked as a message which has helped to the initial question of the thread.
Printing the report changes the record pointer because it's processing the records in the table. You'll have to remember what record you are on with RECNO() and then restore it after the report.

Also, be careful when you have a grid on the form and then run a report because it can mess things up. You have to take focus off the grid before printing the report. I don't think this should be an issue for you because you said you have a 2nd form that is running the report .. but I just thought I'd make you aware of a potential problem.

Cathy

>I have two a tables: client.dbf and other
>itens. dbf
> The two tables have a relation and are open in
> form1.
>
> Itens are displayed in a grid in form1
>
> When I click a iten a new form opens (form2)
>
> Form form 2 a run a report then close form2 and
>go back form form1
> When I go back to form1, client record is not there
>any more
>
> How can I keep the record there ?
Cathy Pountney, Microsoft Visual FoxPro MVP
Memorial Business Systems, Inc. (www.mbs-intl.com)

My Website: (www.frontier2000.com)
My Blog: (www.cathypountney.blogspot.com)
My Book: The Visual FoxPro Report Writer - Pushing it to the Limit and Beyond
Free MSDN Article: What's New in the VFP 9.0 Report Writer
Free MSDN Article: The VFP 9.0 Report Writer In Action
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform