Property PrintOnlyIfDetail means that if set to Yes,
the section of a dataitem is printed only if subdataitems also have at least one record.
If you use it like this:
-Item
--Item Ledger Entry
If you set PrintOnlyIfDetail=Yes Then items without ILE will not be printed, if PrintOnlyIfDetail=No also Items without ILE are printed.
(Item2 is printed or not)
Comments
The way to do this could be to enter code on the OnAfterGetRecord - trigger that reads something like this....
If (field1 = 0) and (field2=0) etc. etc. then
currreport.skip.
That will skip the line in your report.
Tommy
the section of a dataitem is printed only if subdataitems also have at least one record.
If you use it like this:
-Item
--Item Ledger Entry
If you set PrintOnlyIfDetail=Yes Then items without ILE will not be printed, if PrintOnlyIfDetail=No also Items without ILE are printed.
(Item2 is printed or not)
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯