Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Watermark in report
Message
 
À
25/07/2006 15:14:46
Emerson Reed
Folhamatic Tecnologia Em Sistemas
Americana - São Paulo, Brésil
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01139905
Message ID:
01139923
Vues:
33
>How can I add a watermark ("demo") in my report programatically?
>I'm using the new ReportListeners.
>I need to do this programatically because all my reports are printed from a class. By this way, the only thing I need to do is put the necessary code in a method of the class instead of change each report.


Try putting code in the BeforeReport method of the listener to programmatically add the watermark object to the report. Make use of the _FRXCursor class in the FFC directory of VFP. This class has methods that help you manipulate an FRX file.

If you don't want to alter the original report you will have to make a copy and alter the copy instead of the original.

If you happen to be attending DevCon, I just put together a session that includes a sample on how to run reports based on a "template". The template can have page heading and page footing object, as well as a watermark. When you run a report, you just tell it what template to merge together for the final report. All source code will be made available to attendees.
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform