Page 1 of 1

Tables wrap error

Posted: Tue Nov 06, 2012 12:12 pm
by mikry
Hello, we still have problem with tables wrap.

See in attachment "991383 DTS.pdf" on page 4. Header is for number "420773021593" and next is footer, this is ok. But next on the same page is header "MMS" for number "420773759246"! Header with new phone number should be start on new page.

Michal

Re: Tables wrap error

Posted: Fri Nov 09, 2012 6:54 am
by Alex K.
Hello,

Please try to set the NewPageBefore property to false for the GroupHeaderPhoneNumber and NewPageAfter to true for GroupFooterPhoneNumber component.

Thank you.

Re: Tables wrap error

Posted: Fri Nov 09, 2012 7:57 am
by mikry
Hello, this solution is unacceptable because the last page is always empty.

I found some solution with parameter "Keep Group Together" = True on GroupHeaderPhoneNumber. Bud I'm afraid of next empty pages in some cases.

Michal

Re: Tables wrap error

Posted: Fri Nov 09, 2012 9:13 am
by mikry
Hello, i was right!

Solution with "Keep Group Together" doesn't work. In this case (see attachment) is empty page 4. I can't send something like this to our customer.

Please can you resolve this problem urgently and complexly? This is big error of Your system for me.

Michal

Re: Tables wrap error

Posted: Fri Nov 09, 2012 10:09 am
by HighAley
Hello.

We have solved your problem by
  • adding a string variable CurNumber
  • changing the expression in the Text2 text box to

    Code: Select all

    {CurNumber=detail_invoice_item.phone_number}
  • adding next cod in the Before Print event of the GroupHeaderServiceGroup Band:

    Code: Select all

    if (detail_invoice_item.phone_number != CurNumber) {
    Engine.NewPage();
    }
Please, look at the attached report template.
501_detail_statement_changed.mrt
(530.77 KiB) Downloaded 184 times
Thank you.