<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>PowerTools Work Item Rss Feed</title><link>http://www.codeplex.com/PowerTools/WorkItem/List.aspx</link><description>PowerTools Work Item Rss Description</description><item><title>Created Unassigned: TextReplacer Issues with Empty Replacement Text [11035]</title><link>http://powertools.codeplex.com/workitem/11035</link><description>TextReplacer seems to throw an error sometimes in the following code when the text to replace is blank&amp;#58;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;XElement paragraphWithConsolidatedRuns &amp;#61; new XElement&amp;#40;W.p,&lt;br /&gt;&amp;#9;groupedAdjacentRunsWithIdenticalFormatting.Select&amp;#40;g &amp;#61;&amp;#62;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#123;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;if &amp;#40;g.Key &amp;#61;&amp;#61; &amp;#34;DontConsolidate&amp;#34;&amp;#41;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;return &amp;#40;object&amp;#41;g&amp;#59;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;string textValue &amp;#61; g.Select&amp;#40;r &amp;#61;&amp;#62; r.Element&amp;#40;W.t&amp;#41;.Value&amp;#41;.StringConcatenate&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;XAttribute xs &amp;#61; null&amp;#59;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;if &amp;#40;textValue&amp;#91;0&amp;#93; &amp;#61;&amp;#61; &amp;#39; &amp;#39; &amp;#124;&amp;#124; textValue&amp;#91;textValue.Length - 1&amp;#93; &amp;#61;&amp;#61; &amp;#39; &amp;#39;&amp;#41;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;xs &amp;#61; new XAttribute&amp;#40;XNamespace.Xml &amp;#43; &amp;#34;space&amp;#34;, &amp;#34;preserve&amp;#34;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;return new XElement&amp;#40;W.r,&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;g.First&amp;#40;&amp;#41;.Elements&amp;#40;W.rPr&amp;#41;,&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;new XElement&amp;#40;W.t, xs, textValue&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#125;&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;Line &amp;#34;if &amp;#40;textValue&amp;#91;0&amp;#93; &amp;#61;&amp;#61; &amp;#39; &amp;#39; &amp;#124;&amp;#124; textValue&amp;#91;textValue.Length - 1&amp;#93; &amp;#61;&amp;#61; &amp;#39; &amp;#39;&amp;#41;&amp;#34; has error&amp;#58; Index was outside the bounds of the array.&lt;br /&gt;</description><author>gamzu</author><pubDate>Tue, 21 May 2013 18:38:29 GMT</pubDate><guid isPermaLink="false">Created Unassigned: TextReplacer Issues with Empty Replacement Text [11035] 20130521063829P</guid></item><item><title>Created Issue: ArgumentNullException in RevisionAccepter [10961]</title><link>http://powertools.codeplex.com/workitem/10961</link><description>In RevisionAccepter in method AddBlockLevelContentControls the tools throws ArgumentNullException when there is a content control &amp;#40;sdt&amp;#41; without runs. There is this comment in the code that shows this to be a known issue&amp;#58;&lt;br /&gt;                &amp;#47;&amp;#47; TODO - Need a slight modification here.  If there is a paragraph&lt;br /&gt;                &amp;#47;&amp;#47; in the content control that contains no runs, then because the paragraph isn&amp;#39;t included in the&lt;br /&gt;                &amp;#47;&amp;#47; content control, because the following triggers off of runs.&lt;br /&gt;                &amp;#47;&amp;#47; To see an example of this, see example document &amp;#34;NumberingParagraphPropertiesChange.docxs&amp;#34;&lt;br /&gt;&lt;br /&gt;I report it here anyway because I found no existing issue with this information. My workaround is to insert this line&amp;#58;&lt;br /&gt;&lt;br /&gt;          if &amp;#40;runsInNewDocument.Count&amp;#61;&amp;#61;0&amp;#41; continue&amp;#59;&lt;br /&gt;&lt;br /&gt;just after the line &amp;#34;var runsInNewDocument &amp;#61; ...&amp;#34;&lt;br /&gt;It is most certainly not an entirely correct solution, but it makes the tools not break in this case.&lt;br /&gt;&lt;br /&gt;I hope this helps someone until the problem is fixed properly.&lt;br /&gt;&lt;br /&gt;The whole class of the RevisionAccepter seems overly complex to me. I find the process of tagging and copying content hard to grasp and I suspect it could have been done much simpler.&lt;br /&gt;&lt;br /&gt;Thanks.&lt;br /&gt;</description><author>Jcoolsen</author><pubDate>Thu, 02 May 2013 11:04:14 GMT</pubDate><guid isPermaLink="false">Created Issue: ArgumentNullException in RevisionAccepter [10961] 20130502110414A</guid></item><item><title>Commented Issue: Style numbering disappear after merge [10590]</title><link>http://powertools.codeplex.com/workitem/10590</link><description>I have word document X.docx. I get a list of elements from it and try to insert to another document Y.docx via powertools DocumentBuilder.BuildDocument. In case I apply style to paragraph &amp;#40;X.docx&amp;#41; which contain numbering in StyleDefinitionsPart, after merging I lose all numbering in resulting document. &lt;br /&gt;Document.xml&lt;br /&gt;&lt;br /&gt;- &lt;br /&gt;&lt;br /&gt;- &lt;br /&gt;When is necessary to use &amp;#8230; &amp;#63;&lt;br /&gt;&lt;br /&gt;&amp;#8211;&lt;br /&gt;Style.xml&lt;br /&gt;&lt;br /&gt;. . .&lt;br /&gt;&lt;br /&gt;- &lt;br /&gt;&lt;br /&gt;- &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In result I get document where style referring to numId , but there no element w&amp;#58;num with this numId in NumberingPart&lt;br /&gt;&lt;br /&gt;DocumentBuilder.BuildDocument&lt;br /&gt;1&amp;#41; void CopyStartingParts &amp;#40;&amp;#8230;&amp;#41;&lt;br /&gt;&amp;#123;&amp;#8230;&lt;br /&gt;&amp;#47;&amp;#47; Note&amp;#58; Do not copy the numbering part. For every source, create new numbering definitions from&lt;br /&gt;&amp;#47;&amp;#47; scratch.&lt;br /&gt;&amp;#47;&amp;#47;NumberingDefinitionsPart numberingPart &amp;#61; sourceDocument.MainDocumentPart.NumberingDefinitionsPart&amp;#59;&lt;br /&gt;&amp;#125;&lt;br /&gt;Why&amp;#63;&lt;br /&gt;2&amp;#41; CopyNumbering&amp;#40;&amp;#8230;&amp;#41;&lt;br /&gt;&amp;#123;&lt;br /&gt;foreach &amp;#40;XElement numReference in newContent.DescendantsAndSelf&amp;#40;W.numPr&amp;#41;&amp;#41;&lt;br /&gt;but it doesn&amp;#8217;t take into account the numbering in StyleDefinitionsPart&lt;br /&gt;&amp;#125;&lt;br /&gt;Comments: ** Comment from web user: HomerSimpian ** &lt;p&gt;For whatever it is worth, I have found that for my purposes and with the documents I am merging, I needed to re-instate the commented out code at line 1721 or so in DocumentBuilder.cs.  I'm not saying this is a fix for everyone, as there must be a valid reason it was commented out to begin with.  That said, it does appear to fix my problems by re-adding it in.&lt;/p&gt;&lt;p&gt;Without it, I am missing the numbering.xml entirely and my styles are no longer 'valid'.  The headings become bullets or nothing at times.  Hope this bit helps.&lt;/p&gt;</description><author>HomerSimpian</author><pubDate>Fri, 08 Mar 2013 22:00:09 GMT</pubDate><guid isPermaLink="false">Commented Issue: Style numbering disappear after merge [10590] 20130308100009P</guid></item><item><title>Commented Issue: Style numbering disappear after merge [10590]</title><link>http://powertools.codeplex.com/workitem/10590</link><description>I have word document X.docx. I get a list of elements from it and try to insert to another document Y.docx via powertools DocumentBuilder.BuildDocument. In case I apply style to paragraph &amp;#40;X.docx&amp;#41; which contain numbering in StyleDefinitionsPart, after merging I lose all numbering in resulting document. &lt;br /&gt;Document.xml&lt;br /&gt;&lt;br /&gt;- &lt;br /&gt;&lt;br /&gt;- &lt;br /&gt;When is necessary to use &amp;#8230; &amp;#63;&lt;br /&gt;&lt;br /&gt;&amp;#8211;&lt;br /&gt;Style.xml&lt;br /&gt;&lt;br /&gt;. . .&lt;br /&gt;&lt;br /&gt;- &lt;br /&gt;&lt;br /&gt;- &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In result I get document where style referring to numId , but there no element w&amp;#58;num with this numId in NumberingPart&lt;br /&gt;&lt;br /&gt;DocumentBuilder.BuildDocument&lt;br /&gt;1&amp;#41; void CopyStartingParts &amp;#40;&amp;#8230;&amp;#41;&lt;br /&gt;&amp;#123;&amp;#8230;&lt;br /&gt;&amp;#47;&amp;#47; Note&amp;#58; Do not copy the numbering part. For every source, create new numbering definitions from&lt;br /&gt;&amp;#47;&amp;#47; scratch.&lt;br /&gt;&amp;#47;&amp;#47;NumberingDefinitionsPart numberingPart &amp;#61; sourceDocument.MainDocumentPart.NumberingDefinitionsPart&amp;#59;&lt;br /&gt;&amp;#125;&lt;br /&gt;Why&amp;#63;&lt;br /&gt;2&amp;#41; CopyNumbering&amp;#40;&amp;#8230;&amp;#41;&lt;br /&gt;&amp;#123;&lt;br /&gt;foreach &amp;#40;XElement numReference in newContent.DescendantsAndSelf&amp;#40;W.numPr&amp;#41;&amp;#41;&lt;br /&gt;but it doesn&amp;#8217;t take into account the numbering in StyleDefinitionsPart&lt;br /&gt;&amp;#125;&lt;br /&gt;Comments: ** Comment from web user: HomerSimpian ** &lt;p&gt;For whatever it is worth, I have found that for my purposes and with the documents I am merging, I needed to re-instate the commented out code at line 1721 or so in DocumentBuilder.cs.  I'm not saying this is a fix for everyone, as there must be a valid reason it was commented out to begin with.  That said, it does appear to fix my problems by re-adding it in.&lt;/p&gt;&lt;p&gt;Without it, I am missing the numbering.xml entirely and my styles are no longer 'valid'.  The headings become bullets or nothing at times.  Hope this bit helps.&lt;/p&gt;</description><author>HomerSimpian</author><pubDate>Fri, 08 Mar 2013 22:00:07 GMT</pubDate><guid isPermaLink="false">Commented Issue: Style numbering disappear after merge [10590] 20130308100007P</guid></item><item><title>Commented Issue: Style numbering disappear after merge [10590]</title><link>http://powertools.codeplex.com/workitem/10590</link><description>I have word document X.docx. I get a list of elements from it and try to insert to another document Y.docx via powertools DocumentBuilder.BuildDocument. In case I apply style to paragraph &amp;#40;X.docx&amp;#41; which contain numbering in StyleDefinitionsPart, after merging I lose all numbering in resulting document. &lt;br /&gt;Document.xml&lt;br /&gt;&lt;br /&gt;- &lt;br /&gt;&lt;br /&gt;- &lt;br /&gt;When is necessary to use &amp;#8230; &amp;#63;&lt;br /&gt;&lt;br /&gt;&amp;#8211;&lt;br /&gt;Style.xml&lt;br /&gt;&lt;br /&gt;. . .&lt;br /&gt;&lt;br /&gt;- &lt;br /&gt;&lt;br /&gt;- &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In result I get document where style referring to numId , but there no element w&amp;#58;num with this numId in NumberingPart&lt;br /&gt;&lt;br /&gt;DocumentBuilder.BuildDocument&lt;br /&gt;1&amp;#41; void CopyStartingParts &amp;#40;&amp;#8230;&amp;#41;&lt;br /&gt;&amp;#123;&amp;#8230;&lt;br /&gt;&amp;#47;&amp;#47; Note&amp;#58; Do not copy the numbering part. For every source, create new numbering definitions from&lt;br /&gt;&amp;#47;&amp;#47; scratch.&lt;br /&gt;&amp;#47;&amp;#47;NumberingDefinitionsPart numberingPart &amp;#61; sourceDocument.MainDocumentPart.NumberingDefinitionsPart&amp;#59;&lt;br /&gt;&amp;#125;&lt;br /&gt;Why&amp;#63;&lt;br /&gt;2&amp;#41; CopyNumbering&amp;#40;&amp;#8230;&amp;#41;&lt;br /&gt;&amp;#123;&lt;br /&gt;foreach &amp;#40;XElement numReference in newContent.DescendantsAndSelf&amp;#40;W.numPr&amp;#41;&amp;#41;&lt;br /&gt;but it doesn&amp;#8217;t take into account the numbering in StyleDefinitionsPart&lt;br /&gt;&amp;#125;&lt;br /&gt;Comments: ** Comment from web user: HomerSimpian ** &lt;p&gt; I'm seeing the same issue as dadawley before wrote.  The loss of the multilevel numbering is crucial when applied to heading styles!  I don't know if I have time to look closely at this, but this is very much a setback for my use. &lt;/p&gt;</description><author>HomerSimpian</author><pubDate>Sat, 23 Feb 2013 21:21:49 GMT</pubDate><guid isPermaLink="false">Commented Issue: Style numbering disappear after merge [10590] 20130223092149P</guid></item><item><title>Commented Issue: DocumentBuilder doesn't work properly with Bookmarks at the end [10762]</title><link>http://powertools.codeplex.com/workitem/10762</link><description>If you concatenate 2 files with the DocumentBuilder and the first document has a &amp;#96;w&amp;#58;bookmarStart&amp;#96; and &amp;#96;w&amp;#58;bookmarkEnd&amp;#96; tag between the final paragraph and the document end &amp;#96;w&amp;#58;sectPr&amp;#96;, the resulting document won&amp;#39;t be correct. The first paragraph of the the second document will be part of the first document. The markup then looks like this&amp;#58;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;w&amp;#58;p&lt;br /&gt;whatever the content&lt;br /&gt;w&amp;#58;p&amp;#47;&lt;br /&gt;w&amp;#58;bookmarkStart&amp;#47;&lt;br /&gt;w&amp;#58;bookmarkEnd&lt;br /&gt;  w&amp;#58;pPr&lt;br /&gt;    w&amp;#58;sectPr&amp;#47;&lt;br /&gt;  w&amp;#58;pPr&amp;#47;&lt;br /&gt;w&amp;#58;bookmarkEnd&amp;#47;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;It seems that the document end &amp;#96;w&amp;#58;sectPr&amp;#96; is added &amp;#40;along with an additional &amp;#96;w&amp;#58;pPr&amp;#96;&amp;#41; to the tag before it, whatever that tag is. It should be added to the last &amp;#96;w&amp;#58;p&amp;#96; before it.&lt;br /&gt;&lt;br /&gt;Sorry, you&amp;#39;ll have to think the brackets for yourselves. The issue tracker swallowed them along with their content even though they were formatted as code&lt;br /&gt;Comments: ** Comment from web user: EricWhiteDpe ** &lt;p&gt;Hi, I am pretty sure about what the issue is, and that I can fix it.  I'll take a look as soon as I am available to do so.&lt;/p&gt;&lt;p&gt;-Eric&lt;/p&gt;</description><author>EricWhiteDpe</author><pubDate>Mon, 21 Jan 2013 15:33:30 GMT</pubDate><guid isPermaLink="false">Commented Issue: DocumentBuilder doesn't work properly with Bookmarks at the end [10762] 20130121033330P</guid></item><item><title>Created Issue: DocumentBuilder doesn't work properly with Bookmarks at the end [10762]</title><link>http://powertools.codeplex.com/workitem/10762</link><description>If you concatenate 2 files with the DocumentBuilder and the first document has a &amp;#96;&amp;#96; and &amp;#96;&amp;#96; tag between the final paragraph and the document end &amp;#96;&amp;#96;, the resulting document won&amp;#39;t be correct. The first paragraph of the the second document will be part of the first document. The markup then looks like this&amp;#58;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;&lt;br /&gt;whatever the content&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;    &lt;br /&gt;  &lt;br /&gt;&lt;br /&gt;&amp;#96;&amp;#96;&amp;#96;&lt;br /&gt;It seems that the document end &amp;#96;&amp;#96; is added &amp;#40;along with an additional &amp;#96;&amp;#96;&amp;#41; to the tag before it, whatever that tag is. It should be added to the last &amp;#96;&amp;#96; before it.&lt;br /&gt;</description><author>Naryoril</author><pubDate>Mon, 21 Jan 2013 14:08:39 GMT</pubDate><guid isPermaLink="false">Created Issue: DocumentBuilder doesn't work properly with Bookmarks at the end [10762] 20130121020839P</guid></item><item><title>Commented Issue: Style numbering disappear after merge [10590]</title><link>http://powertools.codeplex.com/workitem/10590</link><description>I have word document X.docx. I get a list of elements from it and try to insert to another document Y.docx via powertools DocumentBuilder.BuildDocument. In case I apply style to paragraph &amp;#40;X.docx&amp;#41; which contain numbering in StyleDefinitionsPart, after merging I lose all numbering in resulting document. &lt;br /&gt;Document.xml&lt;br /&gt;&lt;br /&gt;- &lt;br /&gt;&lt;br /&gt;- &lt;br /&gt;When is necessary to use &amp;#8230; &amp;#63;&lt;br /&gt;&lt;br /&gt;&amp;#8211;&lt;br /&gt;Style.xml&lt;br /&gt;&lt;br /&gt;. . .&lt;br /&gt;&lt;br /&gt;- &lt;br /&gt;&lt;br /&gt;- &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In result I get document where style referring to numId , but there no element w&amp;#58;num with this numId in NumberingPart&lt;br /&gt;&lt;br /&gt;DocumentBuilder.BuildDocument&lt;br /&gt;1&amp;#41; void CopyStartingParts &amp;#40;&amp;#8230;&amp;#41;&lt;br /&gt;&amp;#123;&amp;#8230;&lt;br /&gt;&amp;#47;&amp;#47; Note&amp;#58; Do not copy the numbering part. For every source, create new numbering definitions from&lt;br /&gt;&amp;#47;&amp;#47; scratch.&lt;br /&gt;&amp;#47;&amp;#47;NumberingDefinitionsPart numberingPart &amp;#61; sourceDocument.MainDocumentPart.NumberingDefinitionsPart&amp;#59;&lt;br /&gt;&amp;#125;&lt;br /&gt;Why&amp;#63;&lt;br /&gt;2&amp;#41; CopyNumbering&amp;#40;&amp;#8230;&amp;#41;&lt;br /&gt;&amp;#123;&lt;br /&gt;foreach &amp;#40;XElement numReference in newContent.DescendantsAndSelf&amp;#40;W.numPr&amp;#41;&amp;#41;&lt;br /&gt;but it doesn&amp;#8217;t take into account the numbering in StyleDefinitionsPart&lt;br /&gt;&amp;#125;&lt;br /&gt;Comments: ** Comment from web user: dadawley ** &lt;p&gt;I am seeing related issue. After merging documents with multilevel numbering applied to heading styles, the numbering.xml file is missing from the new document package - and so is the multilevel numbering...&lt;/p&gt;</description><author>dadawley</author><pubDate>Fri, 14 Dec 2012 06:42:36 GMT</pubDate><guid isPermaLink="false">Commented Issue: Style numbering disappear after merge [10590] 20121214064236A</guid></item><item><title>Created Issue: Problem with font encoding when converting to html [10624]</title><link>http://powertools.codeplex.com/workitem/10624</link><description>When converting docx to html, does not convert text written in crilic&lt;br /&gt;Tthanks for any help&lt;br /&gt;</description><author>bagdat</author><pubDate>Mon, 26 Nov 2012 03:27:40 GMT</pubDate><guid isPermaLink="false">Created Issue: Problem with font encoding when converting to html [10624] 20121126032740A</guid></item><item><title>Created Issue: Style numbering disappear after merge [10590]</title><link>http://powertools.codeplex.com/workitem/10590</link><description>I have word document X.docx. I get a list of elements from it and try to insert to another document Y.docx via powertools DocumentBuilder.BuildDocument. In case I apply style to paragraph &amp;#40;X.docx&amp;#41; which contain numbering in StyleDefinitionsPart, after merging I lose all numbering in resulting document. &lt;br /&gt;Document.xml&lt;br /&gt;&lt;br /&gt;- &lt;br /&gt;&lt;br /&gt;- &lt;br /&gt;When is necessary to use &amp;#8230; &amp;#63;&lt;br /&gt;&lt;br /&gt;&amp;#8211;&lt;br /&gt;Style.xml&lt;br /&gt;&lt;br /&gt;. . .&lt;br /&gt;&lt;br /&gt;- &lt;br /&gt;&lt;br /&gt;- &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In result I get document where style referring to numId , but there no element w&amp;#58;num with this numId in NumberingPart&lt;br /&gt;&lt;br /&gt;DocumentBuilder.BuildDocument&lt;br /&gt;1&amp;#41; void CopyStartingParts &amp;#40;&amp;#8230;&amp;#41;&lt;br /&gt;&amp;#123;&amp;#8230;&lt;br /&gt;&amp;#47;&amp;#47; Note&amp;#58; Do not copy the numbering part. For every source, create new numbering definitions from&lt;br /&gt;&amp;#47;&amp;#47; scratch.&lt;br /&gt;&amp;#47;&amp;#47;NumberingDefinitionsPart numberingPart &amp;#61; sourceDocument.MainDocumentPart.NumberingDefinitionsPart&amp;#59;&lt;br /&gt;&amp;#125;&lt;br /&gt;Why&amp;#63;&lt;br /&gt;2&amp;#41; CopyNumbering&amp;#40;&amp;#8230;&amp;#41;&lt;br /&gt;&amp;#123;&lt;br /&gt;foreach &amp;#40;XElement numReference in newContent.DescendantsAndSelf&amp;#40;W.numPr&amp;#41;&amp;#41;&lt;br /&gt;but it doesn&amp;#8217;t take into account the numbering in StyleDefinitionsPart&lt;br /&gt;&amp;#125;&lt;br /&gt;</description><author>vetalight</author><pubDate>Thu, 08 Nov 2012 14:40:15 GMT</pubDate><guid isPermaLink="false">Created Issue: Style numbering disappear after merge [10590] 20121108024015P</guid></item><item><title>Created Issue: List numbering does not work when Nsid is not set on abstract numbering elements [10509]</title><link>http://powertools.codeplex.com/workitem/10509</link><description>Attached is a modified DocumentBuilder class handling this case.&lt;br /&gt;</description><author>skaar</author><pubDate>Thu, 27 Sep 2012 09:45:57 GMT</pubDate><guid isPermaLink="false">Created Issue: List numbering does not work when Nsid is not set on abstract numbering elements [10509] 20120927094557A</guid></item><item><title>Commented Issue: RevisionAccepter not accepting all changes. [10484]</title><link>http://powertools.codeplex.com/workitem/10484</link><description>Hi, I am trying to use accept all revisions on a given word document that has been attached to this request.&lt;br /&gt;But I can still find a style change that has not been accepted when I use the code below. If I open word application and used the &amp;#39;Accept all Changes in Document&amp;#39; button, it works fine. Please help&amp;#33;&amp;#33;&lt;br /&gt;&lt;br /&gt;Code used&amp;#58;&lt;br /&gt;using &amp;#40;WordprocessingDocument doc &amp;#61; WordprocessingDocument.Open&amp;#40;filepath, true&amp;#41;&amp;#41;&lt;br /&gt;&amp;#123;&lt;br /&gt;   OpenXmlPowerTools.RevisionAccepter.AcceptRevisions&amp;#40;doc&amp;#41;&amp;#59;&lt;br /&gt;&amp;#125;&lt;br /&gt;Comments: ** Comment from web user: netzen ** &lt;p&gt;I missed the save statement in the above code, but I am saving the document through code, as below.&lt;/p&gt;&lt;p&gt;doc.MainDocumentPart.Document.Save&amp;#40;&amp;#41;&amp;#59;&lt;/p&gt;&lt;p&gt;Any help is really appreciated.&lt;br /&gt;Thanks&amp;#33;&lt;/p&gt;</description><author>netzen</author><pubDate>Thu, 13 Sep 2012 16:30:10 GMT</pubDate><guid isPermaLink="false">Commented Issue: RevisionAccepter not accepting all changes. [10484] 20120913043010P</guid></item><item><title>Created Issue: RevisionAccepter not accepting all changes. [10484]</title><link>http://powertools.codeplex.com/workitem/10484</link><description>Hi, I am trying to use accept all revisions on a given word document that has been attached to this request.&lt;br /&gt;But I can still find a style change that has not been accepted when I use the code below. If I open word application and used the &amp;#39;Accept all Changes in Document&amp;#39; button, it works fine. Please help&amp;#33;&amp;#33;&lt;br /&gt;&lt;br /&gt;Code used&amp;#58;&lt;br /&gt;using &amp;#40;WordprocessingDocument doc &amp;#61; WordprocessingDocument.Open&amp;#40;filepath, true&amp;#41;&amp;#41;&lt;br /&gt;&amp;#123;&lt;br /&gt;   OpenXmlPowerTools.RevisionAccepter.AcceptRevisions&amp;#40;doc&amp;#41;&amp;#59;&lt;br /&gt;&amp;#125;&lt;br /&gt;</description><author>netzen</author><pubDate>Thu, 13 Sep 2012 16:18:11 GMT</pubDate><guid isPermaLink="false">Created Issue: RevisionAccepter not accepting all changes. [10484] 20120913041811P</guid></item><item><title>Created Issue: Revision Accepter deletes bookmarks [10422]</title><link>http://powertools.codeplex.com/workitem/10422</link><description>If I&amp;#39;m reading the code right, the RevisionAccepter class assumes that the only child elements of &amp;#60;w&amp;#58;body&amp;#62; in document.xml are &amp;#60;w&amp;#58;p&amp;#62; and &amp;#60;w&amp;#58;tbl&amp;#62;. My documents, however, also contain &amp;#60;w&amp;#58;bookmarkStart&amp;#62; and &amp;#60;w&amp;#58;bookmarkEnd&amp;#62; elements at this level. These disappear after running the RevisionAccepter &amp;#40;which I was doing via the MarkupSimplifier&amp;#41;.&lt;br /&gt;&lt;br /&gt;Some sample markup&amp;#58;&lt;br /&gt;&lt;br /&gt;    &amp;#60;w&amp;#58;p w&amp;#58;rsidR&amp;#61;&amp;#34;000857B9&amp;#34; w&amp;#58;rsidRDefault&amp;#61;&amp;#34;009E2AB4&amp;#34;&amp;#62;&lt;br /&gt;      &amp;#60;w&amp;#58;pPr&amp;#62;&lt;br /&gt;        &amp;#60;w&amp;#58;pStyle w&amp;#58;val&amp;#61;&amp;#34;Heading2&amp;#34;&amp;#47;&amp;#62;&lt;br /&gt;        &amp;#60;w&amp;#58;divId w&amp;#58;val&amp;#61;&amp;#34;1566181478&amp;#34;&amp;#47;&amp;#62;&lt;br /&gt;        &amp;#60;w&amp;#58;rPr&amp;#62;&lt;br /&gt;          &amp;#60;w&amp;#58;rFonts w&amp;#58;eastAsia&amp;#61;&amp;#34;Times New Roman&amp;#34;&amp;#47;&amp;#62;&lt;br /&gt;        &amp;#60;&amp;#47;w&amp;#58;rPr&amp;#62;&lt;br /&gt;      &amp;#60;&amp;#47;w&amp;#58;pPr&amp;#62;&lt;br /&gt;      &amp;#60;w&amp;#58;bookmarkStart w&amp;#58;id&amp;#61;&amp;#34;8&amp;#34; w&amp;#58;name&amp;#61;&amp;#34;section_GECF50&amp;#34;&amp;#47;&amp;#62;&lt;br /&gt;      &amp;#60;w&amp;#58;bookmarkStart w&amp;#58;id&amp;#61;&amp;#34;9&amp;#34; w&amp;#58;name&amp;#61;&amp;#34;_Toc316899143&amp;#34;&amp;#47;&amp;#62;&lt;br /&gt;      &amp;#60;w&amp;#58;r&amp;#62;&lt;br /&gt;        &amp;#60;w&amp;#58;rPr&amp;#62;&lt;br /&gt;          &amp;#60;w&amp;#58;rFonts w&amp;#58;eastAsia&amp;#61;&amp;#34;Times New Roman&amp;#34;&amp;#47;&amp;#62;&lt;br /&gt;        &amp;#60;&amp;#47;w&amp;#58;rPr&amp;#62;&lt;br /&gt;        &amp;#60;w&amp;#58;t&amp;#62;Some Heading&amp;#60;&amp;#47;w&amp;#58;t&amp;#62;&lt;br /&gt;      &amp;#60;&amp;#47;w&amp;#58;r&amp;#62;&lt;br /&gt;      &amp;#60;w&amp;#58;bookmarkEnd w&amp;#58;id&amp;#61;&amp;#34;8&amp;#34;&amp;#47;&amp;#62;&lt;br /&gt;      &amp;#60;w&amp;#58;bookmarkEnd w&amp;#58;id&amp;#61;&amp;#34;9&amp;#34;&amp;#47;&amp;#62;&lt;br /&gt;    &amp;#60;&amp;#47;w&amp;#58;p&amp;#62;&lt;br /&gt;    &amp;#60;w&amp;#58;bookmarkStart w&amp;#58;id&amp;#61;&amp;#34;10&amp;#34; w&amp;#58;name&amp;#61;&amp;#34;index_AGGDEM13&amp;#34;&amp;#47;&amp;#62;&lt;br /&gt;    &amp;#60;w&amp;#58;bookmarkStart w&amp;#58;id&amp;#61;&amp;#34;11&amp;#34; w&amp;#58;name&amp;#61;&amp;#34;index_CONSUMP11&amp;#34;&amp;#47;&amp;#62;&lt;br /&gt;    &amp;#60;w&amp;#58;bookmarkStart w&amp;#58;id&amp;#61;&amp;#34;12&amp;#34; w&amp;#58;name&amp;#61;&amp;#34;index_EXPCONS9&amp;#34;&amp;#47;&amp;#62;&lt;br /&gt;    &amp;#60;w&amp;#58;bookmarkStart w&amp;#58;id&amp;#61;&amp;#34;13&amp;#34; w&amp;#58;name&amp;#61;&amp;#34;index_PRICONEXP1&amp;#34;&amp;#47;&amp;#62;&lt;br /&gt;    &amp;#60;w&amp;#58;bookmarkStart w&amp;#58;id&amp;#61;&amp;#34;14&amp;#34; w&amp;#58;name&amp;#61;&amp;#34;index_INVESTMENT7&amp;#34;&amp;#47;&amp;#62;&lt;br /&gt;    &amp;#60;w&amp;#58;bookmarkStart w&amp;#58;id&amp;#61;&amp;#34;15&amp;#34; w&amp;#58;name&amp;#61;&amp;#34;index_NATIONALINCME17&amp;#34;&amp;#47;&amp;#62;&lt;br /&gt;    &amp;#60;w&amp;#58;bookmarkStart w&amp;#58;id&amp;#61;&amp;#34;16&amp;#34; w&amp;#58;name&amp;#61;&amp;#34;_GoBack&amp;#34;&amp;#47;&amp;#62;&lt;br /&gt;    &amp;#60;w&amp;#58;bookmarkEnd w&amp;#58;id&amp;#61;&amp;#34;16&amp;#34;&amp;#47;&amp;#62;&lt;br /&gt;</description><author>dhavelin</author><pubDate>Thu, 16 Aug 2012 01:24:07 GMT</pubDate><guid isPermaLink="false">Created Issue: Revision Accepter deletes bookmarks [10422] 20120816012407A</guid></item><item><title>Created Issue: Suggestion: Multiline support for SearchAndReplacer [10395]</title><link>http://powertools.codeplex.com/workitem/10395</link><description>The SearchAndReplacer doesn&amp;#39;t support multiline. So when you search for a piece of text and want to replace it with a multiline piece of text is returns a single line.&lt;br /&gt;&lt;br /&gt;I wrote a post on my blog about it, with the updated code as a download&amp;#58; http&amp;#58;&amp;#47;&amp;#47;www.digital-transition.com&amp;#47;archives&amp;#47;2012&amp;#47;add-multi-line-support-to-openxmlpowertools-searchandreplacer&amp;#47;&lt;br /&gt;</description><author>Qayej</author><pubDate>Tue, 07 Aug 2012 15:59:39 GMT</pubDate><guid isPermaLink="false">Created Issue: Suggestion: Multiline support for SearchAndReplacer [10395] 20120807035939P</guid></item><item><title>Created Issue: Unable to set cell style on spreadsheet via WorksheetAccessor.SetCellValue() [10304]</title><link>http://powertools.codeplex.com/workitem/10304</link><description>When updating an existing spreadsheet with a new cell value, the style index is not carried over to the new cell value.&lt;br /&gt;&lt;br /&gt;My quick fix is below.&lt;br /&gt;&lt;br /&gt;See around L345 in WorksheetAccessor.cs&lt;br /&gt;&lt;br /&gt;                    &amp;#47;&amp;#47;cell already exists&lt;br /&gt;                    &amp;#47;&amp;#47;replace the current cell with that with the new value&lt;br /&gt;                    var style &amp;#61; currentCell.Attributes&amp;#40;&amp;#41;.Where&amp;#40;p &amp;#61;&amp;#62; p.Name &amp;#61;&amp;#61; &amp;#34;s&amp;#34;&amp;#41;.SingleOrDefault&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;                    if &amp;#40;style &amp;#33;&amp;#61; null&amp;#41;&lt;br /&gt;                    &amp;#123;&lt;br /&gt;                        newCell.Add&amp;#40;style&amp;#41;&amp;#59;&lt;br /&gt;                    &amp;#125;&lt;br /&gt;                    currentCell.ReplaceWith&amp;#40;newCell&amp;#41;&amp;#59;&lt;br /&gt;</description><author>SeattleDiver</author><pubDate>Thu, 05 Jul 2012 21:28:25 GMT</pubDate><guid isPermaLink="false">Created Issue: Unable to set cell style on spreadsheet via WorksheetAccessor.SetCellValue() [10304] 20120705092825P</guid></item><item><title>Commented Issue: InvalidOperationException (Sequence contains no elements) at DocumentBuilder.MergeStyles [10065]</title><link>http://powertools.codeplex.com/workitem/10065</link><description>Hi&lt;br /&gt;&lt;br /&gt;I&amp;#39;am using DocumentBuilder.BuildDocument &amp;#40;source code in a Visual Studio Project&amp;#41; to merge two word docs, the code is very simple&amp;#58;&lt;br /&gt;&lt;br /&gt;string&amp;#91;&amp;#93; arr &amp;#61; new string&amp;#91;2&amp;#93;&amp;#59;&lt;br /&gt;            arr&amp;#91;0&amp;#93; &amp;#61; &amp;#64;&amp;#34;D&amp;#58;&amp;#92;pgoverno&amp;#92;PFF11.docx&amp;#34;&amp;#59;&lt;br /&gt;            arr&amp;#91;1&amp;#93; &amp;#61; &amp;#64;&amp;#34;D&amp;#58;&amp;#92;pgoverno&amp;#92;PFF12.docx&amp;#34;&amp;#59;&lt;br /&gt;&lt;br /&gt;            List&amp;#60;Source&amp;#62; docList &amp;#61; new List&amp;#60;Source&amp;#62;&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;            WmlDocument doc&amp;#59;&lt;br /&gt;            foreach &amp;#40;string docName in arr&amp;#41;&lt;br /&gt;            &amp;#123;&lt;br /&gt;                doc &amp;#61; new WmlDocument&amp;#40;docName&amp;#41;&amp;#59;&lt;br /&gt;                docList.Add&amp;#40;new Source&amp;#40;doc, false&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;            &amp;#125;&lt;br /&gt;&lt;br /&gt;            WmlDocument docResultado &amp;#61; DocumentBuilder.BuildDocument&amp;#40;docList&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;But, a InvalidOperationException occurs  &amp;#40;Sequence contains no elements&amp;#41; .&lt;br /&gt;The StackTrace is this&amp;#58;&lt;br /&gt;&lt;br /&gt;at System.Linq.Enumerable.First&amp;#91;TSource&amp;#93;&amp;#40;IEnumerable&amp;#96;1 source&amp;#41;&lt;br /&gt;       at OpenXmlPowerTools.DocumentBuilder.MergeStyles&amp;#40;WordprocessingDocument sourceDocument, WordprocessingDocument newDocument, XDocument fromStyles, XDocument toStyles&amp;#41; in D&amp;#58;&amp;#92;OpenXmlPowerTools&amp;#92;OpenXmlPowerTools&amp;#92;DocumentBuilder.cs&amp;#58;line 558&lt;br /&gt;       at OpenXmlPowerTools.DocumentBuilder.CopyStylesAndFonts&amp;#40;WordprocessingDocument sourceDocument, WordprocessingDocument newDocument, IEnumerable&amp;#96;1 newContent&amp;#41; in D&amp;#58;&amp;#92;OpenXmlPowerTools&amp;#92;OpenXmlPowerTools&amp;#92;DocumentBuilder.cs&amp;#58;line 676&lt;br /&gt;       at OpenXmlPowerTools.DocumentBuilder.AppendDocument&amp;#40;WordprocessingDocument sourceDocument, WordprocessingDocument newDocument, List&amp;#96;1 newContent, Boolean keepSection, String insertId, List&amp;#96;1 images&amp;#41; in D&amp;#58;&amp;#92;OpenXmlPowerTools&amp;#92;OpenXmlPowerTools&amp;#92;DocumentBuilder.cs&amp;#58;line 881&lt;br /&gt;       at OpenXmlPowerTools.DocumentBuilder.BuildDocument&amp;#40;List&amp;#96;1 sources, WordprocessingDocument output&amp;#41; in D&amp;#58;&amp;#92;OpenXmlPowerTools&amp;#92;OpenXmlPowerTools&amp;#92;DocumentBuilder.cs&amp;#58;line 334&lt;br /&gt;       at OpenXmlPowerTools.DocumentBuilder.BuildDocument&amp;#40;List&amp;#96;1 sources&amp;#41; in D&amp;#58;&amp;#92;OpenXmlPowerTools&amp;#92;OpenXmlPowerTools&amp;#92;DocumentBuilder.cs&amp;#58;line 114&lt;br /&gt;       at DocumentBuilderExample.DocumentBuilderExample.Main&amp;#40;String&amp;#91;&amp;#93; args&amp;#41; in D&amp;#58;&amp;#92;OpenXmlPowerTools&amp;#92;ExampleDocumentBuilder01&amp;#92;ExampleDocumentBuilder01.cs&amp;#58;line 79&lt;br /&gt;&lt;br /&gt;Any idea&amp;#63;&lt;br /&gt;&lt;br /&gt;I have attached a zip with both files.&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;&lt;br /&gt;Desbaratizador&lt;br /&gt;Comments: ** Comment from web user: Desbaratizador ** &lt;p&gt;Now, with the files&amp;#63;&lt;/p&gt;</description><author>Desbaratizador</author><pubDate>Fri, 23 Mar 2012 16:36:06 GMT</pubDate><guid isPermaLink="false">Commented Issue: InvalidOperationException (Sequence contains no elements) at DocumentBuilder.MergeStyles [10065] 20120323043606P</guid></item><item><title>Created Issue: InvalidOperationException (Sequence contains no elements) at DocumentBuilder.MergeStyles [10065]</title><link>http://powertools.codeplex.com/workitem/10065</link><description>Hi&lt;br /&gt;&lt;br /&gt;I&amp;#39;am using DocumentBuilder.BuildDocument &amp;#40;source code in a Visual Studio Project&amp;#41; to merge two word docs, the code is very simple&amp;#58;&lt;br /&gt;&lt;br /&gt;string&amp;#91;&amp;#93; arr &amp;#61; new string&amp;#91;2&amp;#93;&amp;#59;&lt;br /&gt;            arr&amp;#91;0&amp;#93; &amp;#61; &amp;#64;&amp;#34;D&amp;#58;&amp;#92;pgoverno&amp;#92;PFF11.docx&amp;#34;&amp;#59;&lt;br /&gt;            arr&amp;#91;1&amp;#93; &amp;#61; &amp;#64;&amp;#34;D&amp;#58;&amp;#92;pgoverno&amp;#92;PFF12.docx&amp;#34;&amp;#59;&lt;br /&gt;&lt;br /&gt;            List&amp;#60;Source&amp;#62; docList &amp;#61; new List&amp;#60;Source&amp;#62;&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;            WmlDocument doc&amp;#59;&lt;br /&gt;            foreach &amp;#40;string docName in arr&amp;#41;&lt;br /&gt;            &amp;#123;&lt;br /&gt;                doc &amp;#61; new WmlDocument&amp;#40;docName&amp;#41;&amp;#59;&lt;br /&gt;                docList.Add&amp;#40;new Source&amp;#40;doc, false&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;            &amp;#125;&lt;br /&gt;&lt;br /&gt;            WmlDocument docResultado &amp;#61; DocumentBuilder.BuildDocument&amp;#40;docList&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;But, a InvalidOperationException occurs  &amp;#40;Sequence contains no elements&amp;#41; .&lt;br /&gt;The StackTrace is this&amp;#58;&lt;br /&gt;&lt;br /&gt;at System.Linq.Enumerable.First&amp;#91;TSource&amp;#93;&amp;#40;IEnumerable&amp;#96;1 source&amp;#41;&lt;br /&gt;       at OpenXmlPowerTools.DocumentBuilder.MergeStyles&amp;#40;WordprocessingDocument sourceDocument, WordprocessingDocument newDocument, XDocument fromStyles, XDocument toStyles&amp;#41; in D&amp;#58;&amp;#92;OpenXmlPowerTools&amp;#92;OpenXmlPowerTools&amp;#92;DocumentBuilder.cs&amp;#58;line 558&lt;br /&gt;       at OpenXmlPowerTools.DocumentBuilder.CopyStylesAndFonts&amp;#40;WordprocessingDocument sourceDocument, WordprocessingDocument newDocument, IEnumerable&amp;#96;1 newContent&amp;#41; in D&amp;#58;&amp;#92;OpenXmlPowerTools&amp;#92;OpenXmlPowerTools&amp;#92;DocumentBuilder.cs&amp;#58;line 676&lt;br /&gt;       at OpenXmlPowerTools.DocumentBuilder.AppendDocument&amp;#40;WordprocessingDocument sourceDocument, WordprocessingDocument newDocument, List&amp;#96;1 newContent, Boolean keepSection, String insertId, List&amp;#96;1 images&amp;#41; in D&amp;#58;&amp;#92;OpenXmlPowerTools&amp;#92;OpenXmlPowerTools&amp;#92;DocumentBuilder.cs&amp;#58;line 881&lt;br /&gt;       at OpenXmlPowerTools.DocumentBuilder.BuildDocument&amp;#40;List&amp;#96;1 sources, WordprocessingDocument output&amp;#41; in D&amp;#58;&amp;#92;OpenXmlPowerTools&amp;#92;OpenXmlPowerTools&amp;#92;DocumentBuilder.cs&amp;#58;line 334&lt;br /&gt;       at OpenXmlPowerTools.DocumentBuilder.BuildDocument&amp;#40;List&amp;#96;1 sources&amp;#41; in D&amp;#58;&amp;#92;OpenXmlPowerTools&amp;#92;OpenXmlPowerTools&amp;#92;DocumentBuilder.cs&amp;#58;line 114&lt;br /&gt;       at DocumentBuilderExample.DocumentBuilderExample.Main&amp;#40;String&amp;#91;&amp;#93; args&amp;#41; in D&amp;#58;&amp;#92;OpenXmlPowerTools&amp;#92;ExampleDocumentBuilder01&amp;#92;ExampleDocumentBuilder01.cs&amp;#58;line 79&lt;br /&gt;&lt;br /&gt;Any idea&amp;#63;&lt;br /&gt;&lt;br /&gt;I have attached a zip with both files.&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;&lt;br /&gt;Desbaratizador&lt;br /&gt;</description><author>Desbaratizador</author><pubDate>Fri, 23 Mar 2012 16:31:59 GMT</pubDate><guid isPermaLink="false">Created Issue: InvalidOperationException (Sequence contains no elements) at DocumentBuilder.MergeStyles [10065] 20120323043159P</guid></item><item><title>Created Issue: Suggested fix for strings not showing in Excel for version 2.2.2 [9898]</title><link>http://powertools.codeplex.com/workitem/9898</link><description>Have attached a new version of WorksheetAccessor that fixes the issue with strings not showing in Excel. Have also used SharedStringTable instead of inline string.&lt;br /&gt;</description><author>ilaneini</author><pubDate>Thu, 09 Feb 2012 08:05:10 GMT</pubDate><guid isPermaLink="false">Created Issue: Suggested fix for strings not showing in Excel for version 2.2.2 [9898] 20120209080510A</guid></item><item><title>Commented Issue: Suggestion: move MatchInfo class from Cmdlets to Classes [9835]</title><link>http://powertools.codeplex.com/workitem/9835</link><description>I would suggest to move MatchInfo class from Cmdlets to Classes. &lt;br /&gt;&lt;br /&gt;This is the only dependency for classes in Classes subfolder from classes in Cmdlets subfodler&amp;#58;&lt;br /&gt;The MatchInfo class is used in PowerTools 2.2&amp;#92;Classes&amp;#92;PowerToolsExtensions.cs &lt;br /&gt;&lt;br /&gt;Thanks&amp;#33;&lt;br /&gt;Comments: ** Comment from web user: DmitryPavlov ** &lt;p&gt;I meant this class to move - Commands.MatchInfo &lt;/p&gt;</description><author>DmitryPavlov</author><pubDate>Tue, 24 Jan 2012 15:53:44 GMT</pubDate><guid isPermaLink="false">Commented Issue: Suggestion: move MatchInfo class from Cmdlets to Classes [9835] 20120124035344P</guid></item></channel></rss>