Tables wrap error

Stimulsoft Reports.NET discussion
Post Reply
mikry
Posts: 42
Joined: Fri Mar 23, 2012 3:57 am

Tables wrap error

Post 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
Attachments
991383 inv.xml
(65.58 KiB) Downloaded 177 times
501_detail_statement.xsd
(2.79 KiB) Downloaded 165 times
501_detail_statement.mrt
(530.42 KiB) Downloaded 216 times
991383 DTS.pdf
(72.01 KiB) Downloaded 220 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Tables wrap error

Post 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.
Attachments
Report.pdf
(118.67 KiB) Downloaded 193 times
mikry
Posts: 42
Joined: Fri Mar 23, 2012 3:57 am

Re: Tables wrap error

Post 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
mikry
Posts: 42
Joined: Fri Mar 23, 2012 3:57 am

Re: Tables wrap error

Post 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
Attachments
991380 DTS.pdf
(66.95 KiB) Downloaded 264 times
991380 DTS.xml
(39.27 KiB) Downloaded 220 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Tables wrap error

Post 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 183 times
Thank you.
Post Reply