Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Print button on preview toolbar
Message
From
18/01/2005 14:58:13
 
 
To
18/01/2005 02:01:13
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
00977969
Message ID:
00978274
Views:
25
E.C. -

|| How to disable print button on report preview toolbar in VFP9? ||

Assuming SET REPORTBEHAVIOR 90, it's even easier than what Doug describes:
oPC = null
do (_REPORTPREVIEW) with m.oPC
oPC.AllowPrintfromPreview = .F.
oRL = create("ReportListener")
oRL.ListenerType = 1
oRL.PreviewContainer = m.oPC
report form ? object m.oRL
Looks like the .AllowPrintFromPreview property didn't make the Help file *sigh*. It's .T. by default but you just set it .F. and you don't get a print button.

Regards,
- Colin
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform