Free Support Forum - aspose.com

Html not properly converted to doc file using Aspose.HTML for .NET

Document_Actual_And_Result.zip (6.5 KB)
Hello Support,
While converting a html file to docx file it does not giving proper result. The inline CSS which is used in html file was not work after converting into docx file. Actual html file and resulted docx file is there in attachment. Please help, its urgent.

@Harsh_Yadav,

Can you please share complete sample code so that we may further investigate to help you out. Also please share which version of Aspose.HTML you are using on your end.

Aspose.Words.Document doc = new Aspose.Words.Document(FileUrl);
doc.Save(htmlFilePath+".docx", SaveFormat.Docx);

This is the code which we are using to convert html to docx

@Harsh_Yadav,

Can you please confirm which product of Aspose you are using on your end.

@Adnan.Ahmad
I am using a 30 days temporary licence to test this scenario.

@Harsh_Yadav

Can you please confirm if you are using Aspose.Words or Aspose.HTML on your end.