Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Include VFP report in document
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro Beta
Divers
Thread ID:
00922095
Message ID:
00922104
Vues:
12
How about printing the reports in TIFF format, instead of HTML?

Create a new ReportListener class. Add a property called, 'cFileName'. Change the ListenerType property to 2. Put the following code in the OutputPage method.
IF tnDeviceType == -1
  IF tnPageNo = 1
    tnDeviceType = 101
  ELSE
    tnDeviceType = 201
  ENDIF
  This.OutputPage(tnPageNo, This.cFileName, tnDeviceType)
  NODEFAULT
ENDIF
You can get even more complex with the code and create separate TIFF files if needed, but this gets you started on the idea. To run the report, use this code.
ox = CREATEOBJECT('MyTIFFListener')
ox.cFileName = 'MyNewFile'
REPORT FORM MyReport OBJECT ox
I hope this helps,
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform