Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

How to print even empty pages?

edited August 2001 in General
D5EE RB5.56 Pro

I configured the report to always print a page, even an empty page
([ndMessageDialog,ndBlankPage]). I hooked into the OnNoData event of the
report , but it is not fired when our report supresses printing an empty
detailband. We need all empty pages for documentation, so what's going
wrong?

Thanks again,

Robbi

Comments

  • edited August 2001
    I think you should use ndBlankReport instead of ndBlankPage

    ndBlankPage
    The default behavior. No page is generated or sent to the devices. As a
    result, the standard Print Preview form will display a single blank page,
    and status bar will read 'Page 0.' If the report is a subreport, the engine
    will simply exit, without using any page space or adding any draw commands
    to the page.

    ndBlankReport
    The report generates as it normally would and the resulting page is sent to
    the devices. The detail band generates only once, creating the effect of an
    'empty' report, where all the data aware components are blank and all
    formatting components (shapes, lines, labels, etc.) display as normal.


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited August 2001
    Jim,

    I'm sorry, but I copied the NoDataBehaviour property value from another
    report on the same form :-(

    The NoDataBehaviour property is actually set to
    [ndMessageOnPage,ndBlankReport]. The problem is that though I have written a
    OnNoData event handler this event is not fired when our report supresses
    printing an empty detailband. The report is very simple, it only has a
    header, one detail band and a footer.

    We need all empty pages for documentation, so what might go wrong?

    Thanks again,

    Robbi
  • edited August 2001
    OnNoData fires for my report. If you are using loading a template, you will
    need to make sure that the event handler is assigned. See the tech-tips
    newsgroup under the Templates thread for more information.


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited August 2001
    I have been using the ndBlankReport option successfully until recently. One
    of my reports has a counter for the number of records it shows and when
    there are no records it is displaying that there are actually one records on
    the report.

    Should the calc field not be zero in this case. I presume it is one because
    a detail band is being printed.

    How can i get around this?

    Tony



This discussion has been closed.