Style attribute in <P> is not suppoerted by InsertHTML() of DocumentBuilder of Aspose.Words

Hi,

I am having two issues

1) I am using DocumentBuilder.InsertHTML( ) of Aspose.Word.dll (version 3.7.1.0) to insert HTML contents into Aspose word document.

If i want to insert some HTML code like

<P class=MsoNormal style=""MARGIN: 0pt 0pt 6pt 24pt; TEXT-INDENT: -0.25in; LINE-HEIGHT: 18pt; mso-margin-top-alt: auto; mso-list: l0 level1 lfo1; tab-stops: list .5in"">hai welcome</P>

I am getting the following error

[FormatException: Input string was not in a correct format.]
System.Number.ParseDouble(String s, NumberStyles style, NumberFormatInfo info) +0
System.Double.Parse(String s, NumberStyles style, IFormatProvider provider) +208
ӓ.ө.Ӽ(String ӝ)
ӓ.ө.ӵ(String ӝ)
ӓ.ө.set_Ӕ(String ӝ)
ӓ.ө..ctor(String cssValue)
ӓ.Ә.set_Ӕ(String ӝ)
ӓ.Ә..ctor(String cssStyle)
᛼.᛻.ᜀ(String ᛾, ParagraphFormat ᜁ)
ᛒ.ᛑ.ᛮ(ۭ ہ)
ᛒ.ᛑ.᛬(ۭ ہ, Boolean ᛣ)
ᛒ.ᛑ.ᛤ(ۭ ہ, Boolean ᛣ)
ᛒ.ᛑ.ᛢ(ۭ ہ, Boolean ᛣ)
ᛒ.ᛑ.ᛟ(ۭ ہ)
ᛒ.ᛑ.ᛟ(ۭ ہ)
ᛒ.ᛑ.ᛠ(پ ᛡ)
ᛒ.ᛑ.ᛞ(String ڰ)
Aspose.Words.DocumentBuilder.InsertHtml(String html)

I think mostly the problem is with the

style attribute ,because i removed that style tag and checked it ,in that case its working fine..

2)


is not rendering. when i use InsertHTML( ) method.

Could you pls give me a solution to how to acheive rectify this issues?

Thanks & Regards,

I.Prabhaharan.

The issue with 'Input string was not in a correct format' is fixed in version 4.0. The HR import is not supported yet as stated in our converters limatations list. We will add support for most of HTML tags but later. This is in our task list.

Best regards,