EnableProcessMessages:=false;
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
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
This discussion has been closed.
Comments
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
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
Thanks
Ed Dressel
Team DM
Thanks for the answer--that makes sense.
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