Style Name is Changed after DOCX>HTML>DOCX conversion using .NET

Hi,

The issue I have on html to docx and docx to html is as follows -

I have a word docx file from which i will generate a htm, and regenerated the doc file using the htm file which generates the new styles in word.

Following is the code used -

var doc1 = new Document(@".\test.docx");
var option = new HtmlSaveOptions();
option.CssStyleSheetType = CssStyleSheetType.External;
doc1.Save(@".\out.htm", option);

var doc2 = new Document(@".\out.htm");
doc2.Save(@".\convertedBack.docx"); 

Please refer to the attachment for test files used to generate the problem.

simple example.zip (17.7 KB)

Please look into this problem.

Regards,
Shanmukh.

@ServerSide527

We have tested the scenario and noticed that the style name (MyStyle) in test.docx is changed to span_MyStyle in output DOCX. We have logged this issue as WORDSNET-21412 in our issue tracking system. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-21412) have been fixed in this Aspose.Words for .NET 24.7 update also available on NuGet.