Insert a page break when printing a popup panel

58 views
Skip to first unread message

Ted

unread,
Jul 26, 2012, 10:08:42 PM7/26/12
to google-we...@googlegroups.com
Hello, I'd like to have a popup panel that prints.  I want to have a page break at a specific location when printing.  I am using GWT 2.4 with UiBinder.  Here are some specifics:

<ui:uiBinder>
  <g:HTMLPanel>
    <g:FlexTable>...I am programmatically building the flex table...</g:FlexTable>
    
    <!-- I want a page break here -->
    <g:Label>...</g:Label>

  </g:HTMLPanel>
...


I have tried adding a style to the label like this:

.pageBreak {
   page-break-before: always;
}
...
<g:Label addStyleNames="{style.pageBreak}">...</g:Label>



I've also tried something like this:

<g:HTML addStyleNames="{style.pageBreak}"/>
<g:Label>...</g:Label>


even tried this...

<g:HTML>
  <div style="page-break-before: always;"/>
</g:HTML>
<g:Label>...</g:Label>

But nothing seems to work.  Does anyone have a suggestion?

Thanks,
Ted
Reply all
Reply to author
Forward
0 new messages