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

jitpipeline not respecting recordcount

edited December 2004 in General
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;

Comments

  • edited December 2004
    I put a breakpoint into the checkeof event handler, and find that
    recordindex is not being incremented. Shouldn't this happen automatically?
    Do I need to do this myself?

    Jeremy

  • edited December 2004
    Ok, I found the AutoStop property, which had to be set on both master and
    detail.


  • edited December 2004

    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
This discussion has been closed.