Quantcast
Viewing all 228 articles
Browse latest View live

New Post: UL bullet lists not rendering properly (or at all)

I have some fairly simply HTML containing <ul> lists. Unfortunately these seem to get lost entirely when generating OpenXML. The output is just w:p/w:r blocks, not w:pPr. Is this a known issue?

From a quick glance through the source it looks like there isn't really a distinction between <ol> and <ul>.... but <ol> doesn't work either!

Is this is a known issue? (it's a bit of a show stopper for me, sadly)

Is there anything I can do in the html markup to mitigate this?

New Post: UL bullet lists not rendering properly (or at all)

I have just tested and it works correctly.
Are you sure you are inserting the converted bits into the same document you use to instantiate HtmlConverter ?

Could you post your Html + call to HtmlConverter ?

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

Was wondering if you got a chance to implement this update?

Thanks

New Post: UL bullet lists not rendering properly (or at all)

I have the same problem.

When I try:
<ol>
  <li>sth</li>
  <li>sth</li>
</ol>
I get no numbering (or bullets in case of <ul>).

But they do work in nested lists!

It may be relevant that the list is inside a <td>.

New Post: UL bullet lists not rendering properly (or at all)

Ignore my comment; I was using an old version (from NuGet). Downloading and building from source solved this problem.

New Post: UL bullet lists not rendering properly (or at all)

I'm sorry about this, I'm not the owner with the NuGet package and I have nothing related with him.
Anyway, I'm glad it finally works as expected.

New Post: Converted document not able to open

I am not able to open converted document. I used sample HTML and sample code provided in documentation. I tried opening documents both with open office and with Microsoft word. Is there anything I am missing in the code for this?

New Post: Escape characters while building html

Hello All,

I am using the HtmltoOpenXml dll for generating the word document. Let me tell you that this is a great dll and it generates the word document very neatly as required.

I am facing one issue when generating the html content for the word document. Html template is designed on the fly in C# code but the values in the html content is sourced from the database. Those values contain " and ' characters in the text. So generating the html gets failed when I have these characters in the text.

Can anyone let me know is there a solution for this problem.

New Post: Escape characters while building html

Hello,


This problem is very tied to your way to build your Html.
Similarly to what you should do if creating an Xml "by-hand", you will have to escape the quotes.
Don't forget to encode also "<" and ">" inside the tags (see related issue)

You can use .net built-in utilities: HttpUtility.HtmlEncode and HttpUtility.HtmlAttributeEncode.

New Post: Converted document not able to open

Could you post your code ?
I'm not an expert on psychic debugging :)

New Post: Table border

Hi there,

I detected a bug with table borders.
I have a table with a simple border in my html code, however, when I preview my this table after conversion, the border line is applied to the cell individually and not to the table. To the end user it seems like a "bold" line, which is not correct.

Can you help me?
Thanks in advance.

New Post: Table border

hello,


Sorry for late reply! I have take a look at your bug and after debugging, I would like to ask you:

in Html, when you apply a CSS class, you can overwrite your behavior but adding inline CSS.
If I understood you well, you have assigned the class attribute + border attribute.

So, in my opinion this is not a bug. Can't you remove your border attribute or make it =0 ?

But I'm agree to modify the code to apply on table and not on borders in case the Table Style already deal with them.

New Post: Table border

Hello onizet,

You have understood well, we are using both the class and border attributes in our table, with the border set to zero.
Your modification sounds like it should solve our issue, looking forward to seeing the updated version :)
Linking to work item 13594 for reference: http://html2openxml.codeplex.com/workitem/13594

New Post: crashes on list-style-type:disc

using an html converter, the following code
converter.Parse("<html><body><ul style=\"list-style-type:disc;\"></body></html>")
throws a NullReferenceException

New Post: crashes on list-style-type:disc

Hello,
I have just tested and it works normally. But the "release" version is far from up-to-date.
I recommend you to download the latest source code and build the library.

New Post: Issue with anchor tag

I am using https://html2openxml.codeplex.com/ for converting HTML to OpenXML and then creating a word document. It works fine for other things except that when I add an anchor tag to the html. It throws the error stating that the Word document has unreadable content. Any help on this will be much appreciated

New Post: Advice on Table of Contents

Firstly, great project - I have just started using this and it's a life saver.

There is one area that I could do with some guidance on, and that's a table of contents. Should I create a list and then use anchor links so that when a user clicks the section it takes them to the applicable part ? I've looked at creating a table of contents using OpenXml but it doesn't seem very straight forward at all!

If anyone could give recommend a good route to go that would be great!

Thanks.

New Post: Issue with anchor tag

Hello,

Sorry for the late reply. Can you post the Html you have used?

New Post: Advice on Table of Contents

Hello,


I have take a look on google how to build a TOC in OpenXml and didn't find a clean answer.
But Eric White discusses here about different ways: link.
Please take a look about the 5 screen casts.

New Post: List paragraph style not picked up

I am seeing a strange issue with the left margin on a list item mentioned by Kyrillos.

The numbers of my OL appear to the left of the margin used by the rest of the document, while the copy for the LIs appear at the proper location.
   this is normal copy
   this is normal copy
1. this is a list item
2. this is a list item
   this is normal copy
   this is normal copy
Notice the numbers appear to the left of the standard margin. Am I doing something wrong?

Thanks for the help and the awesome tool!
Viewing all 228 articles
Browse latest View live