Retain DIV BORDER-TOP RIGHT BOTTOM LEFT values when Inserting HTML in Word Document using C# .NET

Hello,
Is the issue "inserting html with a div containing border is ignored " fixed in version 19.7?

We are also facing the same issue in our c# code at code line

builder.InsertHtml(updatedBlobText);

Thanks,

@sweta107,

Unfortunately, the issue WORDSNET-19025 (Inserting HTML with a DIV containing a Border is Ignored) is not resolved yet.

Can you please ZIP and upload your input HTML document and Aspose.Words generated DOCX file showing the undesired behavior here for testing. We will then investigate the issue on our end and provide you more information.

@awais.hafeez,

Thanks you for your quick response . I have attached the input HTML document and Aspose.Words generated DOC file

Please find the AsposeTableBorderIssue.zip (7.1 KB)

Waiting for your response

Thanks,

@sweta107,

We tested the scenario and have managed to reproduce the same problem on our end. For the sake of correction, we have logged this problem in our issue tracking system. The ID of this issue is WORDSNET-20082. We will further look into the details of this problem and will keep you updated on the status of correction. We apologize for your inconvenience.

Can you please provide an ETA for this issue fix

@sweta107,

I am afraid, your issue is currently pending for analysis and is in the queue. There are no estimates available at the moment. Once the analysis of this issue is completed and the root cause is determined, we may then be able to calculate and share the ETA of this issue with you. We apologize for your inconvenience.

@sweta107,

Regarding WORDSNET-20082, we have completed the work on your issue and come to a conclusion that we would not be able to implement the fix to your issue. Your issue (WORDSNET-20082) is now closed. Please check the following analysis details:

The source document contains DIV with Paragraphs and Table.
Currently, Aspose.Words can create common border either for a few Paragraphs or for single Table. But it cannot create common border for Paragraph and Table at the same time. MS Word uses HtmlBlock during importing such HTML file. Aspose.Words does not support HtmlBlock.

So, such common borders that enclose mixed content (Paragraphs and Tables in this case) are not supported by Aspose.Words because they cannot be represented in the document object model (DOM) of Aspose.Words.