Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

How can I make the Print button in the preview form invisible?

edited March 2002 in General
I thought I could make the Print button in the preview form invisible using

TppPrintPreview(rbLandscapeGrid.PreviewForm).spbPreviewPrint.Visible :=
False;

but it does not work, apparently because I do not have the right name for
the button. I cannot find the form with the button in the source to get the
name. Can someone point me in the right direction?

Thanks,

--
Bill

Comments

  • edited March 2002
    After a bit more research it looks like the Print button in the preview form
    is FBtnPrint in the ppPreview unit. Unfortunately it is a private member so
    I still cannot see a way to make the print button in the preview form
    invisible.

    Thanks again,

    --
    Bill
  • edited March 2002
    This question appears quite a few times recently...

    There is an example which makes the print button invisible on the preview
    form.

    http://www.digital-metaphors.com/tips/PreviewPlugin.zip
This discussion has been closed.