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

hide an Image

edited September 2004 in RAP
Hi,

I have a sqlDataAcapter with a grapgic field. I want to hide tue image
control in the report in a row dosen?t have a picture.

in BeforePrint I add this code

if LinPrec['Imagen'] = null then
BbImage1.Visible:=false
else
BbImage1.Visible:= true;

but it?s always invisible

Thanks

Comments

  • edited September 2004
    ----------------------------------------------
    Tech Tip: RAP: Checking for Null Data values
    ----------------------------------------------

    The DataPipeline.FieldObjects[] array property provides access to the
    TppField objects. TppField has an IsNull boolean property.

    The notation is DataPipeline.FieldObjects['FieldName'].IsNull

    example:

    if Customer.FieldObjects['Addr1'].IsNull then
    ShowMessage('field value is null');

    --
    Tech Support mailto:support@digital-metaphors.com
    Digital Metaphors http://www.digital-metaphors.com


    --
    Nard Moseley
    Digital Metaphors Corporation
    www.digital-metaphors.com



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.