R – How to calculate the number of rows for a report and hide a header

delphirave-reports

I'm creating my first report with Rave Reports for delphi. I've got the records displaying nicely and I'm on the final stretch before finishing.
I have a set of records which I'm displaying with an if statement on the before print event ONLY if the 'comment' field on the record has data (which is string data). This The problem I have is that when no records are shown I'm still seeing my header and footer. How can I hide the header and footer if I have no records with data in their 'comment' field?

Best Answer

I'm not familiar with Rave Reports but could you not default the header and footer to not being visible and then in the beforeprint, set them visible when you execute the code that triggers when the comment data is present.

Simon

Related Topic