Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Can I Do Page Breaks With InfoPath Forms

24 views
Skip to first unread message

Brian Teutsch [MSFT]

unread,
Jan 20, 2004, 12:19:31 PM1/20/04
to
Yes, it is possible to force a page break. What you'll need to do is to
choose File->Extract Form Files while you're designing your form. Then open
the XSL file for the view where you'd like to create a page break, and
insert the following XSL where there should be a page break:
<DIV contentEditable="false" style="PAGE-BREAK-AFTER: always; COLOR:
graytext; TEXT-ALIGN: center; font-size: 2pt">
<STYLE media="print">
.do-not-print { display: none; }
</STYLE>
<br/>
<SPAN class="do-not-print" style="width: 100%; border-top: #AAAAAA 1pt
dashed;">
<br/>
</SPAN>
</DIV>

Beware that this will force a page break no matter what, even if there were
only a few lines on the page before the break. Also, you can repackage your
form into an XSN by opening the manifest.xsf file and "Saving As..." to XSN.
Also, you will have to modify the manifest.xsn file to force your solution
to display any view changes, to keep you from wondering why you're not
seeing your page break.

Thanks,
Brian

"Christopher Lang" <anon...@discussions.microsoft.com> wrote in message
news:0C5B1A4E-72C7-4C80...@microsoft.com...
> I'm using InfoPath and was trying to create a form to send out as flyers.
But I would like to get InfoPath to use page breaks so that I can print one
form for each page. Is there a way to do this? If so, how?


0 new messages