Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Preview and prompt
Message
From
16/05/2005 17:23:05
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Preview and prompt
Miscellaneous
Thread ID:
01014688
Message ID:
01014688
Views:
69
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
Next
Reply
Map
View

Click here to load this message in the networking platform