jitpipeline not respecting recordcount
I'm using a tppJITPipeline to feed object values into rbuilder. When the
user clicks the "end of report" icon while viewing the report, the report
never reaches eof - it generates pages until cancel is clicked. Also, the
Next icon will build a page even if we're beyond Recordcount.
What am I missing?
Here's the calling code.
plRpt.RecordCount := Pages.Count; //tppJITPipeline. In my test
data, pages.count=1.
ppProdRpt.Device := dvScreen;
ppProdRpt.Print;
user clicks the "end of report" icon while viewing the report, the report
never reaches eof - it generates pages until cancel is clicked. Also, the
Next icon will build a page even if we're beyond Recordcount.
What am I missing?
Here's the calling code.
plRpt.RecordCount := Pages.Count; //tppJITPipeline. In my test
data, pages.count=1.
ppProdRpt.Device := dvScreen;
ppProdRpt.Print;
This discussion has been closed.
Comments
recordindex is not being incremented. Shouldn't this happen automatically?
Do I need to do this myself?
Jeremy
detail.
1. Make sure that Report.DataPipeline is assigned to the JITPipeline
2. Try adding some code to close the pipeline prior to setting record count:
plRpt.Close;
plRpt.RecordCount := Pages.Count;
ppProdRpt.Device := dvScreen;
ppProdRpt.Print;
3. The JITPipeline.RecordIndex will be incremented automatically. Perhaps
the Report.DataPipeline property is not assigned.
--
Nard Moseley
Digital Metaphors Corporation
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com