Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Keep detail band on same page
Message
De
19/05/2005 13:00:22
 
 
À
19/05/2005 12:14:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 7 SP1
Divers
Thread ID:
00958299
Message ID:
01015890
Vues:
30
Don,

>but I'm still not sure that's the best way to do it. I'd like to see the code on the print button on the preview window toolbar.

I have not yet worked much with customizing report preview, but there are lots of possibilities for how to approach the question. Perhaps someone here will jump in with just the info you need, but meanwhile, you might want to set aside a few hours to read in the help file about how the preview functionality is designed, including all of the ways to hook in your custom preview container.

A good place to start reading is in the VFP9 Help by searching for the topic: "Extending Report Preview Functionality" and following the links to the topics that describe the preview API and how to customize previews. In general, the most important concept to understand is that you can hook in your own Preview factory via the _REPORTPREVIEW variable, or you can manually point an instance of ReportListener to your custom preview code via the RL's .PreviewContainer property.

As for your comment that you'd like to see the code on the print button, look in the XSource directory under Tools in your VFP9 home directory and check out the source code for the ReportPreview.app (the factory that is hooked into _REPORTPREVIEW out of the box and hands the report engine a preview container).
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform