Home General

Reports freezing with V14

edited January 2012 in General
Hi,

I have created reports using V12 and as we are releasing the final version
next month so I updated the components to V14.

Everything works fine except for reports that have pipelines connected to
shared datasources.
Some of my reports are using the same datasets to display the data into a
DevExpress grid and a report.

In V12 everything was working fine but with V14 as soon as a pipeline is
connected to a dataset that is connected somewhere else everything freezes...

I changed some of these reports to use a dedicated dataset but it is very
annoying.
I can't find what changed between the 2 versions.

Anybody have a clue on this ?

Thanks

Comments

  • edited January 2012
    One solution might be to use DataSet DisableControls/EnableControls as shown
    below. Even if this does not completely solve the problem, it is recommend
    for performance, because when the report iterates over the dataset, the
    dataset fires lots of events. (see the Delphi help topic for DataSet
    DisableControls)

    myDataSet.DisableControls;

    try
    myReport.Print;
    finally
    myDataSet.EnableControls;
    end;

    The other solution where you have shared datasources, set
    Report.PreviewFormSettings.SinglePageOnly to True. This will use the old
    single page preview. The new scrollable page preview uses a background
    thread to generate pages and this is likely the cause of the issue because
    the data iteration is occurring in the background thread. (And thus the
    events mentioned above occur in the background thread and visual controls
    only work in the main thread).


    -
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited January 2012
    Thanks for the quick answer!

    The DisableControls was causing problems but the preview option fixed everything
    for these reports...

    I should have asked earlier :)
  • edited April 2012
    Nard Moseley (Digital Metaphors) wrote:



    That is a really good tip. Thanks.

    --
    Michael Riley
    GySgt USMC Retired
    http://www.zilchworks.com
This discussion has been closed.