Hi all,

Until now, I've been successfully use customize resource file to display
the Print Preview toolbar without the Print button. Problem arise
because in VFP9 (with SET REPORTBEHAVIOUR 90), looks like the
ReportListener object takes control and disregard the toolbar settings.
Question:
Anybody knows how to easily remove the print button on Print Preview
toolbar while running the report with SET REPORTBEHAVIOUR 90?

Thanks in advance!
Willianto

P.S: Of course the easy solution would be SET REPORTBEHAVIOUR 80.
Problem is, my client already sees how VFP9 render the preview window
beautifully. See, most reports are using Draft fonts and printed on dot
matrix printer. Thus, in the old VFP8, the preview looks miserable. Now,
they want the nice looking _and_ the suppressed-print-button one. Oh
well, you know, _clients_ :P

Re: How to remove print button on Print Preview w/ SET REPORTBEHAVIOUR 90? by Gene

Gene
Wed Nov 01 20:17:04 CST 2006

"Willianto" <willianto@remove-me.telkom-and-me.net> wrote:

[snip]

>P.S: Of course the easy solution would be SET REPORTBEHAVIOUR 80.
>Problem is, my client already sees how VFP9 render the preview window
>beautifully. See, most reports are using Draft fonts and printed on dot
>matrix printer. Thus, in the old VFP8, the preview looks miserable. Now,
>they want the nice looking _and_ the suppressed-print-button one. Oh
>well, you know, _clients_ :P

My boss is like that. I have never gotten into using a
framework, because I could never be sure it would be safe from a
Request.

Be sure to make everything your top priority. <BEG>

Sincerely,

Gene Wirchenko

Computerese Irregular Verb Conjugation:
I have preferences.
You have biases.
He/She has prejudices.

RE: How to remove print button on Print Preview w/ SET REPORTBEHAVIOUR 90? by Leemi

Leemi
Fri Nov 03 13:22:11 CST 2006

Hi Willianto:

See the code in this article:

895279 How to prevent printing from a report preview in Visual FoxPro 9.0
http://support.microsoft.com/default.aspx?scid=kb;EN-US;895279

I hope this helps.

This posting is provided "AS IS" with no warranties, and confers no rights.

Sincerely,
Microsoft FoxPro Technical Support
Lee Mitchell

*-- VFP9 HAS ARRIVED!! --*
Read about all the new features of VFP9 here:
http://msdn.microsoft.com/vfoxpro/

*--Purchase VFP 9.0 here:
http://www.microsoft.com/PRODUCTS/info/product.aspx?view=22&pcid=54787e64-52
69-4500-8bf2-3f06689f4ab3&type=ovr

Keep an eye on the product lifecycle for Visual FoxPro here:
http://support.microsoft.com/gp/lifeselectindex
- VFP5 Mainstream Support retired June 30th, 2003
- VFP6 Mainstream Support retired Sept. 30th, 2003


>Hi all,

>Until now, I've been successfully use customize resource file to display
>the Print Preview toolbar without the Print button. Problem arise
>because in VFP9 (with SET REPORTBEHAVIOUR 90), looks like the
>ReportListener object takes control and disregard the toolbar settings.
>Question:
>Anybody knows how to easily remove the print button on Print Preview
>toolbar while running the report with SET REPORTBEHAVIOUR 90?

>Thanks in advance!
>Willianto

>P.S: Of course the easy solution would be SET REPORTBEHAVIOUR 80.
>Problem is, my client already sees how VFP9 render the preview window
>beautifully. See, most reports are using Draft fonts and printed on dot
>matrix printer. Thus, in the old VFP8, the preview looks miserable. Now,
>they want the nice looking _and_ the suppressed-print-button one. Oh
>well, you know, _clients_ :P



Re: How to remove print button on Print Preview w/ SET REPORTBEHAVIOUR 90? by Willianto

Willianto
Mon Nov 13 20:49:53 CST 2006

Thanks Lee:

Exactly what I'm looking for.

WBR,
Willianto

"Lee Mitchell" <Leemi@online.microsoft.com> wrote in message
news:I9Y3h13$GHA.3164@TK2MSFTNGXA01.phx.gbl...
> Hi Willianto:
>
> See the code in this article:
>
> 895279 How to prevent printing from a report preview in Visual FoxPro
9.0
> http://support.microsoft.com/default.aspx?scid=kb;EN-US;895279
>