Print Something if no Detail

On a report I have a master band with a detail band - I am printing the master if there is no detail, but I want to print something like "No Detail Recorded" if there are no details to be printed - how can I do that? - the report uses tfrDBDatasets as the source.

Comments

  • edited 8:28PM
    1. Attach a child band to your masterdata
    2. Add a "text" object to the child band, write "no detail records" in it
    3. In the masterdata.OnBeforePrint event write the following code:
    Child1.Visible := <Orders."Order No"> = 0;
    where <Orders."Order No"> is a field from detail record that is not 0 if a record exists.

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.