Preventing report table pagebreak

35 views
Skip to first unread message

Jon Goody

unread,
Feb 11, 2012, 12:14:21 PM2/11/12
to InterSystems: Zen Community
I have a report which has a few tables on it. Unfortunately some of
these tables are spanning over 2 pages. In some cases the header on
page one and the content on the other.

Is there a way in ZEN Reports to tell the table if this will go over 2
pages then add a page break?

If not can you tell it to add the header on each page it spills over?

Thanks

Jon

Roberto

unread,
Feb 13, 2012, 10:08:37 AM2/13/12
to InterSystems: Zen Community
How do you have your headers currently?

-Roberto

Goody Jon (NHS LOTHIAN)

unread,
Feb 13, 2012, 10:13:06 AM2/13/12
to intersys...@googlegroups.com
Hi Roberto,

<group name="Alerts">
<p class="headingTwo">ALERTS</p>
<table group="AlertItem" orient="col" width="100%" class="ztktablemain3" altcolor="#EDEDED">
<item field="Alert" caption="Alert" width="2in"></item>
<item field="Message" caption="Message" width="4in" linefeed-treatment="preserve"></item>
<item field="CreateDate" caption="Date Entered"></item>
<item field="Status" caption="Status"></item>
</table>
<line pattern="empty"/>
</group>

Not sure if this is what you mean?

Jon

-----Original Message-----
From: intersys...@googlegroups.com [mailto:intersys...@googlegroups.com] On Behalf Of Roberto
Sent: 13 February 2012 15:09
To: InterSystems: Zen Community
Subject: [InterSystems-Zen] Re: Preventing report table pagebreak

How do you have your headers currently?

-Roberto


On Feb 11, 12:14 pm, Jon Goody <jon.go...@nhs.net> wrote:

--
You received this message because you are subscribed to the Google Groups "InterSystems: Zen Community" group.
To post to this group, send email to InterSys...@googlegroups.com
To unsubscribe from this group, send email to InterSystems-Z...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/InterSystems-ZEN?hl=en
Zen Community Terms and Conditions: http://groups.google.com/group/InterSystems-ZEN/web/community-terms-and-conditions

********************************************************************************************************************

This message may contain confidential information. If you are not the intended recipient please inform the
sender that you have received the message in error before deleting it.
Please do not disclose, copy or distribute information in this e-mail or take any action in reliance on its contents:
to do so is strictly prohibited and may be unlawful.

Thank you for your co-operation.

NHSmail is the secure email and directory service available for all NHS staff in England and Scotland
NHSmail is approved for exchanging patient data and other sensitive information with NHSmail and GSi recipients
NHSmail provides an email address for your career in the NHS and can be accessed anywhere
For more information and to find out how you can switch, visit www.connectingforhealth.nhs.uk/nhsmail

********************************************************************************************************************

Jonathan Levinson

unread,
Feb 13, 2012, 10:47:23 AM2/13/12
to intersys...@googlegroups.com
A table repeats its headers on a page when it spills over. This is the default behavior in FOP which we use for PDF rendering and I don't see any way of turning this off. Are you rendering to PDF or HTML?

Best Regards,
Jonathan Levinson
Senior Software Developer
Object Group
InterSystems
+1 617-621-0600
jonathan...@intersystems.com

> -----Original Message-----
> From: intersys...@googlegroups.com [mailto:intersystems-
> z...@googlegroups.com] On Behalf Of Jon Goody
> Sent: Saturday, February 11, 2012 12:15 PM
> To: InterSystems: Zen Community

> --
> You received this message because you are subscribed to the Google Groups
> "InterSystems: Zen Community" group.
> To post to this group, send email to InterSys...@googlegroups.com To

> unsubscribe from this group, send email to InterSystems-ZEN-
> unsub...@googlegroups.com

Goody Jon (NHS LOTHIAN)

unread,
Feb 13, 2012, 10:54:57 AM2/13/12
to intersys...@googlegroups.com
We are rendering to PDF. It does repeat the header when it spills over but the problem is that I would rather it forces a page break before starting the table.

I have several tables on the report and they are all fairly small in size. It would like it to leave the blank space and go to the next page to start the next if it was going to spill.

Any ideas?

Jon Goody


-----Original Message-----
From: intersys...@googlegroups.com [mailto:intersys...@googlegroups.com] On Behalf Of Jonathan Levinson
Sent: 13 February 2012 15:47
To: intersys...@googlegroups.com
Subject: RE: [InterSystems-Zen] Preventing report table pagebreak

A table repeats its headers on a page when it spills over. This is the default behavior in FOP which we use for PDF rendering and I don't see any way of turning this off. Are you rendering to PDF or HTML?

Best Regards,
Jonathan Levinson
Senior Software Developer
Object Group
InterSystems
+1 617-621-0600
jonathan...@intersystems.com

> -----Original Message-----
> From: intersys...@googlegroups.com [mailto:intersystems-
> z...@googlegroups.com] On Behalf Of Jon Goody
> Sent: Saturday, February 11, 2012 12:15 PM
> To: InterSystems: Zen Community
> Subject: [InterSystems-Zen] Preventing report table pagebreak
>

> --
> You received this message because you are subscribed to the Google Groups
> "InterSystems: Zen Community" group.
> To post to this group, send email to InterSys...@googlegroups.com To
> unsubscribe from this group, send email to InterSystems-ZEN-
> unsub...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/InterSystems-ZEN?hl=en
> Zen Community Terms and Conditions:
> http://groups.google.com/group/InterSystems-ZEN/web/community-terms-
> and-conditions

--
You received this message because you are subscribed to the Google Groups "InterSystems: Zen Community" group.
To post to this group, send email to InterSys...@googlegroups.com

To unsubscribe from this group, send email to InterSystems-Z...@googlegroups.com


For more options, visit this group at http://groups.google.com/group/InterSystems-ZEN?hl=en

Jonathan Levinson

unread,
Feb 13, 2012, 10:58:39 AM2/13/12
to intersys...@googlegroups.com
Have you tried using foStyle on the table and the XSL-FO attribute: keep-with-next?

For instance:

<table class='data' orient='col' group='Persons' foStyle="keep-with-next='always'">

You might investigate the XSL-FO "keep..." attributes and see if one works with your table. I suspect a problem is that "keep" will not work unless the table can fit within one page.

Best Regards,
Jonathan Levinson
Senior Software Developer
Object Group
InterSystems
+1 617-621-0600
jonathan...@intersystems.com


> -----Original Message-----
> From: intersys...@googlegroups.com [mailto:intersystems-
> z...@googlegroups.com] On Behalf Of Goody Jon (NHS LOTHIAN)
> Sent: Monday, February 13, 2012 10:55 AM
> To: intersys...@googlegroups.com
> Subject: RE: [InterSystems-Zen] Preventing report table pagebreak
>

> *****************************************************************


> ***************************************************
>
> This message may contain confidential information. If you are not the intended
> recipient please inform the sender that you have received the message in error
> before deleting it.
> Please do not disclose, copy or distribute information in this e-mail or take any
> action in reliance on its contents:
> to do so is strictly prohibited and may be unlawful.
>
> Thank you for your co-operation.
>
> NHSmail is the secure email and directory service available for all NHS staff in
> England and Scotland NHSmail is approved for exchanging patient data and
> other sensitive information with NHSmail and GSi recipients NHSmail provides an
> email address for your career in the NHS and can be accessed anywhere For
> more information and to find out how you can switch, visit
> www.connectingforhealth.nhs.uk/nhsmail
>
> *****************************************************************
> ***************************************************
>

Jonathan Levinson

unread,
Feb 13, 2012, 11:01:16 AM2/13/12
to intersys...@googlegroups.com
It talked about keep-with-next you might also try keep-together: http://www.w3schools.com/xslfo/prop_keep-together.asp.

Best Regards,
Jonathan Levinson
Senior Software Developer
Object Group
InterSystems
+1 617-621-0600
jonathan...@intersystems.com


> -----Original Message-----
> From: intersys...@googlegroups.com [mailto:intersystems-

> z...@googlegroups.com] On Behalf Of Goody Jon (NHS LOTHIAN)
> Sent: Monday, February 13, 2012 10:55 AM

> To: intersys...@googlegroups.com
> Subject: RE: [InterSystems-Zen] Preventing report table pagebreak
>

> *****************************************************************


> ***************************************************
>
> This message may contain confidential information. If you are not the intended
> recipient please inform the sender that you have received the message in error
> before deleting it.
> Please do not disclose, copy or distribute information in this e-mail or take any
> action in reliance on its contents:
> to do so is strictly prohibited and may be unlawful.
>
> Thank you for your co-operation.
>
> NHSmail is the secure email and directory service available for all NHS staff in
> England and Scotland NHSmail is approved for exchanging patient data and
> other sensitive information with NHSmail and GSi recipients NHSmail provides an
> email address for your career in the NHS and can be accessed anywhere For
> more information and to find out how you can switch, visit
> www.connectingforhealth.nhs.uk/nhsmail
>
> *****************************************************************
> ***************************************************
>

Reply all
Reply to author
Forward
0 new messages