Which Subreport is Printing?
I'm trying to modify the name of the outline nodes. In the
OutlineNodeCreate event, I do I determine which subreport is being
printed? TIA.
Luke Miller
ResCorSoft, Inc.
OutlineNodeCreate event, I do I determine which subreport is being
printed? TIA.
Luke Miller
ResCorSoft, Inc.
This discussion has been closed.
Comments
Based on what each subreport node is named, you can use the
TppOutlineNode.ParentNode property to determine which subreport is printing.
Something like the following...
uses
ppTypes,
ppOutlineNode;
lParentNode := TppOutlineNode(aNode.ParentNode);
if (lParentNode.NodeType = ntSubReport) and (lParentNode.Caption =
'SubreportX') then
//Change node
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
that is composed of 8 subreports. The subreports are named rptSC1,
rptSC2 ... rptSC8. With no changes the outline tree shows Main and then
indented rptSC1. Under rptSC1 there are groups and page numbers.
What I want to change is the captions of the subreport nodes. The parent
node for all the subreports is the ntReportNode which doesn't really
help me. While doing some poking around with your suggestion, I noticed
that the sender when ANode.NodeType = ntSubReport is the subreport that
is currently printing. So I'm good to go.
Thanks for your help.