TfrPictureView / Band OnBeforePrint

Hey Guys,

I have a (TfrBandView) Child band. I have a TfrPictureView component on that band. Blob type btBMP.

If there is no data stored in the Datafield for the TfrPictureView how do I not print the band? I am trying to use the scripting language and the OnBeforePrint of the child band?

Any help would be much appreciated.

-Markus

Comments

  • edited 7:03AM
    Hi!

    Use the FIELDISNULL internal function for testing the field for null value.

    Regards:Alex
  • edited 7:03AM
    The function doesn't appear to work. It always evaluates to true (even though it is not)


    begin
    if (FieldIsNull([taDocumentPrintouts."Signature"])) and
    (FieldIsNull([taDocumentPrintouts."Signature2"])) and
    (FieldIsNull([taDocumentPrintouts."Signature3"]))
    then
    Child1.Visible := False
    else
    Child1.Visible := True
    end

    -Markus
  • edited 7:03AM
    Some correction. Gord wrote in the Yahoo mail list not too much time ago.

    if [(FIELDISNULL('CustomerData.Customers."Contact"'))]then

    in 2.51 you'll find it in the expression builder under dabase functions.
    note the ' ' around the module.table.fieldname
    IIRC the expression builder won't add them

    Try this.

    Regards:Alex
  • edited 7:03AM
    Great! That works!!!

    Thanks much,

    Markus

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.