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

Print Preview not working correctly with report based on ClientDataSet

edited September 2001 in General
I have a report using a BDE pipe connected to a client dataset populated
locally within the program. The report contains a single group, although I
don't think this is relevant to the problem.

When printing the report directly it prints fine. When print previewing it
initially appears correct. However, if you page to the second page and then
back to the first the date on the second page remains displayed. If you try
and print after paging forward to the second page it only prints the second
page.

It seems that report builder can't get re-retrieve (or properly cache?) the
data from the client data set, although the data is still in the client
dataset. The opendataset and closedataset properties of the BDE pipe are
set to false and the client dataset isn't closed or destroyed during the
lifetime of the report.

Because of the nature of the data I can't use a regular query or
master/detail relationship.

Any help would be greatly appreciated.

David Beardsley
NuMedics, Inc.

Comments

  • edited September 2001
    I just created a report using the Delphi Midas Adhoc demo and placed a
    report on it and it preveiwed the data for the query in that demo. Moving
    through the pages in the preview worked correctly. Is your query configured
    to be bidirectional? ReportBuilder does not cache the data, and so it needs
    to traverse through the data as it generates a report. Does setting
    Report.CachePages to true help? What version of RB are you using? 6.02 is
    our latest and you may want to try that version if you haven't upgraded yet.
    Send a request to info@digital-metaphors.com with your registration
    information to upgrade.


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.