<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: [almost there] Repeating table - show header at top of each printed page</title><link>https://www.infopathdev.com:443/forums/thread/71420.aspx</link><pubDate>Wed, 26 Oct 2011 14:58:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:71420</guid><dc:creator>stara</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/71420.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=71420</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Where do I use the xdPreserved element? Can you please provide syntax? Should I include this within: &amp;lt;xsl:stylesheet&amp;gt;?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks in advance&lt;/p&gt;</description></item><item><title>Re: [almost there] Repeating table - show header at top of each printed page</title><link>https://www.infopathdev.com:443/forums/thread/67593.aspx</link><pubDate>Tue, 21 Jun 2011 00:06:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67593</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67593.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=67593</wfw:commentRss><description>&lt;p&gt;Mapybe you could create a XSL-&amp;quot;tweaked&amp;quot; XTP that you drag-and-drop into all of your forms...&lt;/p&gt;</description></item><item><title>Re: [almost there] Repeating table - show header at top of each printed page</title><link>https://www.infopathdev.com:443/forums/thread/67530.aspx</link><pubDate>Mon, 20 Jun 2011 07:31:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67530</guid><dc:creator>Skarn</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67530.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=67530</wfw:commentRss><description>&lt;p&gt;I can see how the xdPreserved bit (after Googling it) would work to stop Infopath auto-undoing, but I also read xdPreserves is not suitable for use in Browser based forms and the way they are displayed. Browser forms aren&amp;#39;t usually in my scope anyway, but if I build a little &amp;#39;tweak&amp;#39; tool to put &amp;lt;THEAD&amp;gt; tags into the xsl files without using xdPreserved would that allow the tweak to still work in Browser forms do you think?&lt;/p&gt;&lt;p&gt;I have a few little tools I&amp;#39;ve built using MSAccess that do various Infopath things, I am thinking I could put all of them into one MSAccess project file and allow people to use whatever they find useful. By automating it, installing little xsl patches into an xsn after each publish would be quick and easy.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: [almost there] Repeating table - show header at top of each printed page</title><link>https://www.infopathdev.com:443/forums/thread/67527.aspx</link><pubDate>Mon, 20 Jun 2011 05:42:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67527</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67527.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=67527</wfw:commentRss><description>&lt;p&gt;Skarn, you simply rock! :)&lt;/p&gt;
&lt;p&gt;Don&amp;#39;t forget the xdPreserved for protecting XSLT blocks so that InfoPath Designer doesn&amp;#39;t change them on roundtrip. Fun stuff ahead ...&lt;/p&gt;</description></item><item><title>[almost there] Repeating table - show header at top of each printed page</title><link>https://www.infopathdev.com:443/forums/thread/67523.aspx</link><pubDate>Sun, 19 Jun 2011 23:59:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67523</guid><dc:creator>Skarn</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67523.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=67523</wfw:commentRss><description>&lt;p&gt;It&amp;#39;s been asked many times how this can be accomplished. And there have been a number of clever methods attempted but I thought there *must* be a simpler way.&lt;/p&gt;&lt;p&gt;Well&amp;nbsp;I think I have it - Infopath stores the display formatting information for each of its views in XSL files, which are packaged up in the XSN template file.&lt;br /&gt;XSL files are XML transforms - they are used by Infopath in this case to generate HTML style formatting out of the raw XML data saved in a form and display it.&lt;/p&gt;&lt;p&gt;Looking at the XSL files in notepad I see that CSS styles appear quite prominently. So I Googles a bit and found that TABLES in HTML can be made up of &amp;lt;THEAD&amp;gt; and &amp;lt;TBODY&amp;gt; tags.&lt;br /&gt;Inside of Infopath XSL files there are lots of &amp;lt;TBODY&amp;gt; entries for repeating tables, but instead of &amp;lt;THEAD&amp;gt; for table headers, it uses &amp;lt;TBODY class=&amp;quot;xdTableHeader&amp;quot;&amp;gt; tags.&lt;/p&gt;&lt;p&gt;The &amp;#39;class&amp;#39; attribute here tells Infopath what CSS style to use from those defined at the top of the XSL.&lt;/p&gt;&lt;p&gt;Well, &amp;lt;THEAD&amp;gt; tag (according to CSS documentation) has a style attribute: style=&amp;quot;DISPLAY: table-header-group&amp;quot;, which tells a web browser to repeat the header every printed page.&lt;/p&gt;&lt;p&gt;So after a bit of experimenting I managed to get a template which behaves as we want and I&amp;#39;ve attached it.&lt;/p&gt;&lt;p&gt;PROBLEM: As soon as you make any change to the template/table in the design view Infopath turns all the THEADs back into TBODYs!&lt;/p&gt;&lt;p&gt;So it means that this &amp;#39;solution&amp;#39; has to be the last thing you do, every time you make a form change - which is to say the least, irritating.&lt;/p&gt;&lt;p&gt;Here is the process I used to make the modification:&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Extract form source files using&amp;nbsp;File&amp;nbsp;&amp;gt; Extract Files or File &amp;gt; Save As Source Files (IP2007)&lt;/li&gt;&lt;li&gt;Go to the extracted files folder&lt;/li&gt;&lt;li&gt;Open up&amp;nbsp;the&amp;nbsp;XSL file&amp;nbsp;corresponding to the View you want to alter the repeating table on in&amp;nbsp;a text editor (Windows Notepad does fine)&lt;/li&gt;&lt;li&gt;Do a Search for &amp;lt;tbody class=&amp;quot;xdTableHeader&amp;quot;&amp;gt; - and keep searching until you find the one which is followed by &amp;lt;tr&amp;gt; and &amp;lt;td&amp;gt; tags which match your repeating table headers.&lt;/li&gt;&lt;li&gt;Replace &amp;lt;tbody class=&amp;quot;xdTableHeader&amp;quot;&amp;gt; with &amp;lt;thead class=&amp;quot;xdTableHeader&amp;quot; style=&amp;quot;DISPLAY: table-header-group&amp;quot;&lt;/li&gt;&lt;li&gt;Find the &amp;lt;/tbody&amp;gt; closing tag which used to mark the end of the table header &amp;lt;tr&amp;gt; and &amp;lt;td&amp;gt; tags (it&amp;#39;s usually right before another &amp;lt;tbody&amp;gt; tag)&lt;/li&gt;&lt;li&gt;Replace that &amp;lt;/tbody&amp;gt; tag with &amp;lt;/thead&amp;gt;&lt;/li&gt;&lt;li&gt;Save the xsl file&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;Now find the xsf file in the&amp;nbsp;extracted files, right-click and design. Go to Preview and insert a ton of rows into your repeating table. Select File &amp;gt; Print Preview and you should see that your table header is repeated on each page that the repeating tabled travels over!&lt;/p&gt;&lt;p&gt;DON&amp;#39;T make ANY changes to the view layout - as soon as you do Infopath will get rid of all your THEAD work.&lt;/p&gt;&lt;p&gt;File &amp;gt; Publish your form again to a new location to &amp;#39;recompile&amp;#39; all the extracted form files back into a single&amp;nbsp;xsn file, this xsn will maintain the THEAD behaviour.&lt;/p&gt;&lt;p&gt;So what&amp;#39;s the next step? &lt;br /&gt;Well - taking inspiration from Microsofts own DownLevel tools - I think I&amp;nbsp;will build a small script which does all the above for us automatically, eliminating the irritating rework every publish.&lt;/p&gt;&lt;p align="center"&gt;[Please visit the site to access the poll]&lt;/p&gt;</description></item></channel></rss>