Home General

creating subreport in code

edited February 2016 in General
I am creating a subreport in code, using the example from the wiki.
However, I need srGenSumm to contain in its detail band srGenSummDtls.
My difficulty is in finding the proper assignment for:

srGenSumm := TppSubReport.Create(Self);
srGenSumm.Band := repMain.DetailBand;
srGenSumm.CreateReport(repMain);
repGenSumm := TppChildReport(srGenSumm.Report);
repGenSumm.DataPipeline := plGenSumm;

srGenSummDtls := TppSubReport.Create(Self);
srGenSummDtls.Band := ???
srGenSummDtls.CreateReport(repMain);
repGenSummDtls := TppChildReport(srGenSummDtls.Report);
srGenSummDtls.DataPipeline := plGenSummDtls;


Thanks,

Bill Meyer

Comments

This discussion has been closed.