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.
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 -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of MB Software Solutions General Account Sent: Thursday, May 29, 2008 12:50 AM To: ProFox Email List Subject: Suppressing the printing option in VFP9 for reports This is the code snippet I was expecting to work: IF oUtils.lTrial THEN REPORT FORM (tcRpt) NOCONSOLE PREVIEW WINDOW (.Name) ELSE REPORT FORM (tcRpt) TO PRINTER PROMPT NOCONSOLE PREVIEW WINDOW (.Name) ENDIF ...but even though it falls into the first part of the IF because oUtils.lTrial = .T., it still shows the Printer button enabled on the Report toolbar. How can I disable this? tia, --Michael [excessive quoting removed by server] _______________________________________________ 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.

