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

Preview Looks Correct, Print Button Outputs Blank Summary Band Only

edited August 2004 in General
I have a report where in the preview my data shows up fine, but when I click
the print button, only the summary band is printed. This is the first time
I have ever seen this happen for any of my reports. If I use TExtraDevices
to print to a PDF file, the results are correct - exactly the same as the
preview.

My report consists of:
TppTitleBand,TppHeaderBand,TppDetailBand,TppFooterBand,TppSummaryBand
I am using Delphi 6 (+updates) and RB 7.04 Standard.

I accumate the records to be printed in the Report.BeforePrint event.
Adding breakpoints to this event confirms that there are 4 records to print
when the preview is generated. Then when the print toolbar button is
clicked from the preview dialog and the [Print] button selected from the
printer selection dialog, the event is called again and the result is the
same number of records, but the printed output consists of only the summary
band with zeros in each of the summary items.

If I do not show a preview and instead use Report.DeviceType=Printer the
report prints OK.

I hope this is something easy I have overlooked! Thanks for any help.

-Johnnie

Comments

  • edited August 2004
    Hi Johnnie,

    Usually when the preview output does not match the printed output, there is
    some event code somewhere causing the problem. As a test, try commenting
    out all your event code and rerunning the report. If this shows the
    expected output, periodically begin adding bits of the event code back to
    isolate the problem.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited August 2004
    "Nico Cizik (Digital Metaphors)" wrote in
This discussion has been closed.