Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I remove and icon from a toolbar?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00442911
Message ID:
00442967
Vues:
13
>>Why do you want to disable it? More specifically why do you want them to use your report manager?
>
>Because I want to write to a table when a certain report is printed. I won't be able to control that with the print button on the preview toolbar.


Actually, yes you can. Put your code to write to the table in a UDF (or method) that you can call from within the report. In the "On Exit" section of the Report Summary Band, call your UDF (or method). Your UDF should look like this:
IF WEXIST('Printing...')
  ... Update your table
ENDIF
The 'Printing...' window will only exist if the user has printed to the printer, not when the user is previewing. Putting the code in the "On Exit" section of the Report Summary band helps ensure that the user has finished printing and didn't cancel it.

Cathy
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