Quantcast
Channel: html2openxml Discussions Rss Feed
Browsing all 228 articles
Browse latest View live

New Post: Image not inserted in resulted docx document.

This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.

View Article


New Post: heading tag and font name changes are not applied to open xml document

This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.

View Article


New Post: Add section breaks in a document

This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.

View Article

New Post: System.NullReferenceException occurred in DocumentFormat.OpenXml.dll

I am trying to use the source code but when running a simple test case it fails in HtmlConverter.cs line 89 in the if (mainPart.Document.Body == null) A first chance exception of type...

View Article

New Post: System.NullReferenceException occurred in DocumentFormat.OpenXml.dll

I'm pretty sure the MainDocumentPart argument you pass in the constructor of HtmlConverter is null. Because the Document and the Body is created on the fly if they don't exist.

View Article


New Post: Error when inserting HTML into Word table

I may be doing something wrong as I am just learning the Open XML SDK, but when I embed the HTML into a table in the Word document and then open the Word document I get this error:"The file ... cannot...

View Article

New Post: Having issue for

Maybe, it's just me, but the "<hr>" tag is not rendering in the document. I tried "<hr />" and "<hr></hr>". Is anyone else having issue with this tag or is it just me? Thanks...

View Article

New Post: Having issue for

Never mind, it works now, my apology.

View Article


New Post: Background Image or absolute positioning

Hi, I have to create a docx document with image behind text or with some watermark image on every page. Is it possible? Something like "background image" or "position: absolute" seem to not work....

View Article


New Post: List paragraph style not picked up

I read in a previous posts that the newer version keeps the styles such as headings and listparagraphs etc, but it does not. can anyone suggest a fix. In particular i am interested when having bullet...

View Article

New Post: Error when inserting HTML into Word table

Maybe a bit late... but adding a table is a bit complicated in OpenXml. I suggest you to embed your Html code with "<table><tr><td>" + yourHtml +...

View Article

New Post: Problem with Image in docx file.

Hey, i just wanna use this library in my project but i have issue with images. When im converting html around new MainDocument part in brand-new document everything seeem to be ok, but in my project i...

View Article

New Post: Problem with Image in docx file.

Hi, When the parser encounters images, it creates relations to "ImagePart". This is how works OpenXml. I recommend you to use this library with the final MainDocumentPart that you targets, not working...

View Article


New Post: Apply Word style based on p class

fwkb wrote: I was able to do this by making a small addition to ProcessParagraph in HtmlConverter.ProcessTag.cs Here is what it looks like now:   private void ProcessParagraph(HtmlEnumerator en) {...

View Article

New Post: Apply Word style based on p class

can you please share how that worked for you

View Article


New Post: Apply Word style based on p class

It's strange I never reply to this post because I have commited back in the source this change. So syyad, there is 2 ways to do that: 1) use a predefined template with these style having the same name...

View Article

New Post: Nested numbered lists

After checking the source code, I found a dirty workaround for the immediate document I am working with: using style="list-style-type:lower-roman" in the 2nd level <ol>. That took care of the...

View Article


New Post: Should H1 restart the numbering of H2 or I am doing something wrong...

Just a simple question, are you trying to achieve a table of contents? Because there is easier way :-) If you want to use your own list instance style, I recommend you to define it by Word, then append...

View Article

New Post: Nested numbered lists

I think one of the critical things in word is defining your styles to use are in the template. You need to either Program, import or manually create your styles in a doc or a XML file FIRST...

View Article

New Post: Should H1 restart the numbering of H2 or I am doing something wrong...

Not really building a TOC, just a document with 2-3 levels of heading with some plain text and nested lists after each of the headings. I defined numbering in the template and it applied fine, except...

View Article
Browsing all 228 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>