<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Repeating table - Print View</title><link>https://www.infopathdev.com:443/forums/thread/87319.aspx</link><pubDate>Fri, 22 Feb 2013 10:06:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:87319</guid><dc:creator>sladefx</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/87319.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=87319</wfw:commentRss><description>&lt;p&gt;Hi there, did you get anywhere with implementing this CSS or the code?&lt;/p&gt;&lt;p&gt;Have exactly the same problem.&lt;/p&gt;</description></item><item><title>Re: Repeating table - Print View</title><link>https://www.infopathdev.com:443/forums/thread/67721.aspx</link><pubDate>Fri, 24 Jun 2011 10:09:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67721</guid><dc:creator>Qurator</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67721.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=67721</wfw:commentRss><description>&lt;p&gt;Thanks for the reply. I&amp;#39;ve tried the page-break-before:always and page-break-after:always settings neither appear to do much unfortunately. I&amp;#39;m assuming I&amp;#39;ve managed to do it correctly:&lt;/p&gt;
&lt;p&gt;Open in design and then save as source files -&amp;gt; open printview.xsl and find the repeating table, add the css to the table style and save. Open Manifest.xsf in design and then save as .xsn and then open .xsn. &lt;/p&gt;
&lt;p&gt;I&amp;#39;ve explained the problem to the user and they&amp;#39;ve agreed that it isn&amp;#39;t worth the hassle trying to get this to display correctly as they will only be printing for another 2 or 3 weeks before touch screens are installed to display these forms in their work spaces.&lt;/p&gt;
&lt;p&gt;If I get any spare time I&amp;#39;ll give it a go as I really dislike having to leave projects on &amp;quot;that&amp;#39;ll do&amp;quot; style fixes lol. &lt;/p&gt;</description></item><item><title>Re: Repeating table - Print View</title><link>https://www.infopathdev.com:443/forums/thread/67545.aspx</link><pubDate>Mon, 20 Jun 2011 11:50:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67545</guid><dc:creator>Skarn</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67545.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=67545</wfw:commentRss><description>&lt;p&gt;I&amp;#39;ve listed my &amp;#39;repeat table header&amp;#39; findings here: &lt;a href="http://www.infopathdev.com/forums/p/19481/67530.aspx#67530"&gt;http://www.infopathdev.com/forums/p/19481/67530.aspx#67530&lt;/a&gt;&amp;nbsp;and there might be something similar you can do to make the tables not page break in the middle of a row.&lt;/p&gt;&lt;p&gt;A google for CSS styles for tables which supposedly address this behaviour&amp;nbsp;gives: &amp;lt;TABLE style=&amp;quot;page-break-after:always&amp;quot;&amp;gt; as a possibility as a tag to insert into the associated view xsl if you know how.&lt;/p&gt;&lt;p&gt;But take note of my problem with Infopath reversing changes made to it&amp;#39;s xsl files. A possible solution to this has been hinted by Patrick but I&amp;#39;ve yet to do any testing.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Repeating table - Print View</title><link>https://www.infopathdev.com:443/forums/thread/67540.aspx</link><pubDate>Mon, 20 Jun 2011 11:18:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67540</guid><dc:creator>Qurator</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67540.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=67540</wfw:commentRss><description>&lt;p&gt;The main problem I encountered was trying to convert it to C#, but also that I think the layout of the form I have taken over may be completely different to the layout provided by Matt.&amp;nbsp;I have just started this job and have been given a form to update the print view for. The form allows the user to go in and enter some details, which then creates a step by step guide.&amp;nbsp;&amp;nbsp;The layout of the data source is:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;myFields&lt;/p&gt;
&lt;p&gt;-&amp;gt; SOPMain&lt;/p&gt;
&lt;p&gt;-&amp;gt;-&amp;gt;OperationDetail (Repeating Table) (Contains: Number, Name, Description, Points, Picture, additionalFile, anotherFile)&lt;/p&gt;
&lt;p&gt;-&amp;gt;Footer&lt;/p&gt;
&lt;p&gt;&amp;nbsp;The print view was almost complete, except for this slight issue, and the&amp;nbsp;form is currently being used by the business&amp;nbsp;so to be honest I was hoping for a &amp;#39;Right click -&amp;gt; Don&amp;#39;t allow rows to break over page&amp;#39; style answer (as in Word). The research I&amp;#39;ve done, unfortunately, seems to indicate that this isn&amp;#39;t possible. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;Please could you let me know the C# equivalent of: &lt;/p&gt;
&lt;p&gt;&lt;font color="#333399" face="Courier New"&gt;// Set up access to secondary data source.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var domVehicles = XDocument.GetDOM(&amp;quot;Vehicles&amp;quot;);&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font style="FONT-SIZE:10pt;"&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font style="FONT-SIZE:10pt;" color="#333399" face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Source nodes.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var oVehicles = domVehicles.selectNodes(&amp;quot;/Vehicles/Vehicle&amp;quot;);&lt;/font&gt;&lt;font style="FONT-SIZE:10pt;" color="#333399" face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // ALL ROWS&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Get the node list.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var oRows = XDocument.DOM.selectNodes(&amp;quot;/my:myFields/my:Document/my:Page/my:Table/my:Row&amp;quot;);&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font style="FONT-SIZE:10pt;" color="#333399" face="Courier New"&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font style="FONT-SIZE:10pt;" color="#333399" face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Save a sample node from this list for later - we will have to clone&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // it to add our rows back in.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var oSampleRow = oRows.nextNode();&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font style="FONT-SIZE:10pt;" color="#333399" face="Courier New"&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font style="FONT-SIZE:10pt;" color="#333399" face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Remove all the rows from all the repeating tables.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; oRows.removeAll();&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font style="FONT-SIZE:10pt;" color="#333399" face="Courier New"&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font style="FONT-SIZE:10pt;" color="#333399" face="Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // ALL TABLES&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var oTables = XDocument.DOM.selectNodes(&amp;quot;/my:myFields/my:Document/my:Page/my:Table&amp;quot;);&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var oSampleTable = oTables.nextNode();&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; oTables.removeAll();&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#333399" face="Courier New"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font color="#333399" face="Courier New"&gt;I&amp;#39;ll then try and continue to follow Matt&amp;#39;s example.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#333399" face="Courier New"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font color="#333399" face="Courier New"&gt;Thank you,&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#333399" face="Courier New"&gt;J&lt;/font&gt;&lt;/p&gt;</description></item><item><title>Re: Repeating table - Print View</title><link>https://www.infopathdev.com:443/forums/thread/67537.aspx</link><pubDate>Mon, 20 Jun 2011 11:05:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67537</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67537.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=67537</wfw:commentRss><description>&lt;p&gt;What was the trouble you encountered with Matt&amp;#39;s code?&amp;nbsp; Perhaps we can help you sort that out.&lt;/p&gt;</description></item><item><title>Repeating table - Print View</title><link>https://www.infopathdev.com:443/forums/thread/67535.aspx</link><pubDate>Mon, 20 Jun 2011 09:46:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67535</guid><dc:creator>Qurator</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67535.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=67535</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I&amp;#39;ve been given a form which has repeating tables on it. The repeating table allows a user to add a row and enter some information. The information they enter can be any size. The users have requested the ability to print out the form. I&amp;#39;ve managed to get this working, but they&amp;#39;ve commented on the page breaks in the rows. In most cases the row breaks are happening half way through a row and because each row contains a picture, the text is one one page and the picture another. The idea of the form is to be an instruction manual for the users which means that the picture and the text should ideally be on the same page.&lt;/p&gt;
&lt;p&gt;The picture is always 250x500, if no picture has been added then a place holder is there in place. If the text in the other columns is less than the size of the picture, then 3 rows can occur per page, with about a line or two left over. This means as the document gets longer the formatting gets worse.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve been googling &amp;amp; binging for the last 3 or&amp;nbsp;4 days and have only been able to find little bits and pieces. There was a useful piece of code by Matt Faus (I think that&amp;#39;s the spelling) from this website, unfortunately I haven&amp;#39;t been able to implement it&lt;/p&gt;
&lt;p&gt;The version of Infopath I am using is 2007 and I primarily use C# as the language. The forms are normal, non-web enabled forms. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;(and I&amp;#39;ve been working with Infopath for 7 days, so please be gentle!)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;J&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>