Closed AlirezaAhmadiRad closed 5 years ago
Might be solved with PR #200.
Closing all issues as this repo is being archived and will no longer be maintained by Microsoft. The project is licensed for continued use and development by forking to your own repo.
Hello I have this html file. This is code for converting it to docx:
XElement X = XElement.Parse(HT.HTML); HtmlToWmlConverterSettings S = HtmlToWmlConverter.GetDefaultSettings(); WmlDocument D = HtmlToWmlConverter.ConvertHtmlToWml("", "", "", X, S); sources.Add(new Source(D, true));
Then I receive exception of "Object reference not set to an instance of an object." at this address:
at OpenXmlPowerTools.HtmlToWml.HtmlToWmlConverterCore.GetTableGrid(XElement element, HtmlToWmlConverterSettings settings)b__6(XNode n)
at OpenXmlPowerTools.HtmlToWml.HtmlToWmlConverterCore.Transform(XNode node, HtmlToWmlConverterSettings settings, WordprocessingDocument wDoc, NextExpected nextExpected, Boolean preserveWhiteSpace)
at OpenXmlPowerTools.HtmlToWml.HtmlToWmlConverterCore.<>c__DisplayClass20_0.
at System.Linq.Enumerable.WhereSelectEnumerableIterator
2.MoveNext() at System.Xml.Linq.XContainer.AddContentSkipNotify(Object content) at System.Xml.Linq.XContainer.AddContentSkipNotify(Object content) at OpenXmlPowerTools.HtmlToWml.HtmlToWmlConverterCore.UpdateMainDocumentPart(WordprocessingDocument wDoc, XElement html, HtmlToWmlConverterSettings settings) at OpenXmlPowerTools.HtmlToWml.HtmlToWmlConverterCore.ConvertHtmlToWml(String defaultCss, String authorCss, String userCss, XElement xhtml, HtmlToWmlConverterSettings settings, WmlDocument emptyDocument, String annotatedHtmlDumpFileName) at OpenXmlPowerTools.HtmlToWmlConverter.ConvertHtmlToWml(String defaultCss, String authorCss, String userCss, XElement xhtml, HtmlToWmlConverterSettings settings) at WebOS.Engine.V100.WebOSIO.GenerateWordReport(List
1 Tables, Guid FileID, String FileName, ReportType FileType, Guid OwnerProgramID, RemoteLogin ID)I'm using nuget version 4.5.3.2 Could you please help?