Home General

preview print button

edited June 2001 in General
I'd like to disable the print button on the preview form based on a
boolean field. How do I disable the button at run time?

Thanks,

Craig
--

email address is for spammers. Please reply here.

craig at pbyc dot com

Comments

  • edited June 2001
    The simplest method would probably be to create your own custom preview form
    and enable the behavior you need. See the Developer's Guide for a tutorial
    on replacing RB forms.

    --
    Robert Leahey
    TRX Technology Services
  • edited June 2001
    Robert:

    I've done that and now I get an AV when I reach this line. I've added
    this to the previewOnCreate and tried it in the BeforePrint as well.

    rbPrintPreview.spbPreviewPrint.Visible := not
    dmPO.tblPO_POPRINTED.AsBoolean;

    any ideas?

    Craig


    --

    email address is for spammers. Please reply here.

    craig at pbyc dot com
  • edited June 2001
    This sounds like something you'll just have to debug for yourself. I don't
    have enough information to figure out why you're getting an AV, sorry.

    --
    Robert Leahey
    TRX Technology Services
This discussion has been closed.