Do not print blank report if query does not return data

edited 6:06AM in FastReport 4.0
What do i do to prevent the printing of blank report if the query does not return any rows?
I want to print the report but with a message saying "No records retrieved" or something like that...

Comments

  • edited 6:06AM
    Hello,

    You need to use a script to do this. Look at attached example (you can open it in the Demo.exe).
  • edited 6:06AM
    Thanx AlexTZ...

    I am using FastReports 4.7...i tried different combinations using DataSet and RowCount...but no luck..

    Please suggest a solution
  • gordkgordk St.Catherines On. Canada.
    edited 6:06AM
    are you using external datasets or internal and are you using fr dialogs in report?

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.