Hi Cathy!

Cathy Pountney wrote:
> The PROMPT clause has nothing to do with whether or not the printer button
> appears on the toolbar. What it does is control whether or not the Printer
> Dialog pops up once the user hits the printer button. Without the clause,
> the report goes to the default printer. With the clause, the user can pick
> what they want.


Oh I know the PROMPT clause has nothing to do with it---I only had that 
there so the user could pick the printer at time of print.  My point was 
that by removing the TO PRINTER part, I thought I could suppress it.


> 
> So .. now to answer your question of how to suppress it. If you're using VFP
> 9 and Report Listeners ... you can create an Extension Handler object to use
> with the Preview Container. The Extension Handler object can suppress the
> print button by setting the AllowPrintFromPreview property to .f.. See
> Preview Extension Handler Methods in Leveraging the Default Preview
> Container in VFP9 help.
> 
> If you're using a previous version, you have to modify the toolbar and save
> a read-only resource file that you can use when printing reports. 
> 
> Cathy Pountney

Awesome...I'll look into the Report Listener option...I'm using VFP9SP1 
and so that's definitely an option.  I like that better that hacking the 
resource file.

Once I confirm the working code, I'll be sure to share here.

THANKS!  This list continues to be great!


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to