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
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
Use the FIELDISNULL internal function for testing the field for null value.
Regards:Alex
begin
if (FieldIsNull([taDocumentPrintouts."Signature"])) and
(FieldIsNull([taDocumentPrintouts."Signature2"])) and
(FieldIsNull([taDocumentPrintouts."Signature3"]))
then
Child1.Visible := False
else
Child1.Visible := True
end
-Markus
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
Thanks much,
Markus