Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Preview and prompt
Message
De
16/05/2005 17:23:05
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Preview and prompt
Divers
Thread ID:
01014688
Message ID:
01014688
Vues:
70
I usually execute my reports with a command similar to
report form myreport to printer prompt preview noconsole
This give the user a chance to verify what he is going to print and also to print only certain pages if he doesn't want the entire report.

Using the new report engine and executing a command sequence like
set reportbehavior 90
set classlib to MyReportListeners additive
do (_reportpreview) with loPreviewContainer
loPreviewContainer.ToolBarIsVisible = .t.
loReportListener = newobject 'MyReportListener_Directives', 'MyReportListener

loReportListener.ListenerType = 1	&&Preview
loReportListener.PreviewContainer = loPreviewContainer

report form myreport object loReportListener nowait
produces a nice preview but loses the prompt when the user clicks the print button. Is there a way to get both a preview and a prompt?

Thanks
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform