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

EnableProcessMessages:=false;

edited October 2008 in General
I am using version 10.09 and I have a serious problem with
EnabledProcessMessages not staying False when there is a subreport.
Somewhere along the execution EnabledProcessMessages becomes true and
Application.ProcessMessages executes in procedure
TppProducer.ProcessMessages;

This is easy to reproduce.
Place a ppReport component on a form
add a label in the header
add subreport in detail
add label in footer
then execute
pprep.EnableProcessMessages := False;
ppreport.print;

Can you please confirm? and How can I get around this.
Thanks
Eug

Comments

  • edited October 2008

    Each subreport has a Report property that is of type of TppChildReport.

    Try setting the EnableProcessMessages property for each child report as
    well.

    mySubreport.Report.EnableProcessMessages := False;


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

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited October 2008


    Sure that works! Actually is ppChildReport not subReport that has the
    EnableProcessMessages property. But shouldn't the Report take precedence
    over the ChildReports? When Im loading templates how would I find the
    ChildReports if any and set EnableProcessMessages to False.
    Thanks again
  • edited October 2008
    just curious--why do you want to turn off the process messages?

    Thanks
    Ed Dressel
    Team DM

  • edited November 2008

  • edited November 2008
    > This is an Intraweb ISAPI dll

    Thanks for the answer--that makes sense.
  • edited November 2008


    Call myMainReport.GetSubreports(myTStringList) and pass a local TStringList
    instance. Following the call, the TStringList.Objects[ ] array will contain
    the ChildReport instances for the entire report.


    Yes, the main report should take precedence. This will be added to a future
    RB 11 maintenance release. For now use the code above.

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

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.