Page break not working in trsClientReport (D6.02rb10)

edited October 2006 in Server

Please help with an unexpected result when using the tppPageBreak control.

I am using the tppPageBreak control in a report and conditionally set
visible true/false depending on report data. When this is run in the design
environment the page break behaves as required. When run in our application
using the report server and trsClientReport the page break does not behave
in the same way. Specifically it is not turning off when it supposed to ie.
it seems to be ignoring the tppPageBreak.Visible = false.

I have attach my event code below and as you can see when I have a document
of type 'Quotation' the page break should not be effected but it is.

Is there some other property that I should be using to suppress a page break
or is there some setting in the server that I have overlooked?


procedure ReportBeforePrint;
{Show totals as appropriate}
regConfTotals.visible := false;
regQuoteTotals.visible := false;
regLetter.Visible:= false;
pgbLetter.visible := false;
regAddress.Visible := false;
pgbPaymentForm.visible := false;
regPaymentForm.Visible := false;

{Turn on regions and page breaks as required}
if V_DOC_ITINERARY_1['DOC_TYPE'] ='Quotation' then
regQuoteTotals.visible := true;
regAddress.Visible := true;
if V_DOC_ITINERARY_1['DOC_TYPE'] ='Confirmation' then
regConfTotals.visible := true;
regAddress.Visible := true;
if V_DOC_ITINERARY_1['DOC_TYPE'] ='Final Confirmation' then
regConfTotals.visible := true;
regAddress.Visible := true;
regPaymentForm.visible := true;
if V_DOC_ITINERARY_1['DOC_TYPE'] ='Itinerary' then
pgbPaymentForm.visible := true;
regLetter.visible := true;


  • edited October 2006

    - for testing, try creating a simple project that can run the report in a
    standard Delphi project (i.e. using TppReport.Print). The report should
    behave the same way on the server.

    - for testing, try adding a Label to the report and at the bottom of the
    ReportBeforePrint code, set the Label.Caption

    if pbpPaymentForm.Visible then
    myLabel.Caption := 'BeforePrint event: page break visible'
    myLabel.Caption := 'BeforePrint event: page break not visible'

    - is V_DOC_ITINERARY_1 a datapipeline? Does it contain only a single record?

    Nard Moseley
    Digital Metaphors

    Best regards,

    Nard Moseley
    Digital Metaphors
This discussion has been closed.