Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Thu May 19, 2022 9:42 pm

Can someone help me how to resolve the issue where image is center aligned but it doesn't come center aligned in word document?
Attached is html code that displays image center aligned on web but this comes on converted word doc as left aligned.

Similar his happening to tables. That html is also attached.

Code: Select all
<p style="margin: 0in; line-height: 107%; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="font-size: 9pt; line-height: 107%; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;">&nbsp;</span></p><div align="center"><table class="MsoTableGrid" style="width: 75.48%; border-collapse: collapse; border: none;" border="1" cellspacing="0" cellpadding="0"><tbody><tr style="height: 6.25pt;"><td style="width: 100%; border: 1pt solid windowtext; background: rgb(217, 217, 217); padding: 0in 5.4pt;" colspan="2"><p style="margin: 0in; text-align: center; line-height: normal; font-size: 11pt; font-family: Calibri, sans-serif;"><strong><span style="font-size: 9pt;">COVID-19 <span style="color: black;">STRESS ANALYSIS</span></span></strong></p></td></tr><tr style="height: 12.6pt;"><td style="width: 71.78%; border-right: 1pt solid windowtext; border-bottom: 1pt solid windowtext; border-left: 1pt solid windowtext; border-image: initial; border-top: none; padding: 0in 5.4pt;"><p style="margin: 0in; text-align: center; line-height: normal; font-size: 11pt; font-family: Calibri, sans-serif;"><strong><span style="font-size: 9pt;">Test 1</span></strong></p></td><td style="width: 28.22%; border-top: none; border-left: none; border-bottom: 1pt solid windowtext; border-right: 1pt solid windowtext; padding: 0in 5.4pt;"><p style="margin: 0in; text-align: center; line-height: normal; font-size: 11pt; font-family: Calibri, sans-serif;"><strong><span style="font-size: 9pt;">8.00%</span></strong></p></td></tr><tr style="height: 12.6pt;"><td style="width: 71.78%; border-right: 1pt solid windowtext; border-bottom: 1pt solid windowtext; border-left: 1pt solid windowtext; border-image: initial; border-top: none; padding: 0in 5.4pt;"><p style="margin: 0in; text-align: center; line-height: normal; font-size: 11pt; font-family: Calibri, sans-serif;"><strong><span style="font-size: 9pt;">Test 2</span></strong></p></td><td style="width: 28.22%; border-top: none; border-left: none; border-bottom: 1pt solid windowtext; border-right: 1pt solid windowtext; padding: 0in 5.4pt;"><p style="margin: 0in; text-align: center; line-height: normal; font-size: 11pt; font-family: Calibri, sans-serif;"><strong><span style="font-size: 9pt;">97.28%</span></strong></p></td></tr><tr style="height: 12.6pt;"><td style="width: 71.78%; border-right: 1pt solid windowtext; border-bottom: 1pt solid windowtext; border-left: 1pt solid windowtext; border-image: initial; border-top: none; padding: 0in 5.4pt;"><p style="margin: 0in; text-align: center; line-height: normal; font-size: 11pt; font-family: Calibri, sans-serif;"><strong><span style="font-size: 9pt;">Test 3</span></strong></p></td><td style="width: 28.22%; border-top: none; border-left: none; border-bottom: 1pt solid windowtext; border-right: 1pt solid windowtext; padding: 0in 5.4pt;"><p style="margin: 0in; text-align: center; line-height: normal; font-size: 11pt; font-family: Calibri, sans-serif;"><strong><span style="font-size: 9pt;">1.31x</span></strong></p></td></tr></tbody></table></div><p style="margin: 0in; line-height: 107%; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="font-size: 9pt; line-height: 107%; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;">&nbsp;</span></p>


Code: Select all
<img id="c6815ba7ec944ddfa2b44908ac8b3a50" style="display: block; margin-left:auto; margin-right: auto;" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPIAAACtCAYAAACKsCKGAAAMoUlEQVR4nO3dMWgb1wMG8E9/OkSG0EGiMYioRxcdGSJjPKjIXTRYGjJZoA6ys9okQ6DUU5AxEp1cEIVg3KVDdVoEMi14kBcvviMaQqgDgbvFFQ4CUXTQLHft9DoYXXWW3Pxry/bp9ftN8emdLJn78t5Tcp9DQggBIppq/7vtF0BEV8cgE0mAQSaSAINMJAEGmUgCDDKRBBhkIgkwyEQSCAHgfwghuqLb/n9VnJGJJMAgE0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cYfmeRBjkKbCzswNFUeA4jq98/rzBfrhcLvtm1uGC+3K5DEVRMDMzA4Dle7JgkKdMv99Hr9cD4C/fs20bz549Qz6fR6lUGnuuZVloNpu+ml2W70lCXDOc3e8sbuBbTT3TNEUymfT9zDRNGzm+trYmHMfxjmuaJjRN850HQJTLZdHv90U2m/U934Cmad5zCSGEruveOF3Xb+vHMDWCdG2zfI/okoJ0bXNpTSQBBplIAgwykQRYvkc0AdwjE9GVMchEEmD5HtElsXyPiCaKQSaSAINMJAEGmUgCDLKk6vU6u7f+QxjkKTK4bXFubg6WZQEYX5bnui6Ojo6QTqcRiURg2zZyuRwLAyTGIE+Ze/fu4d69e3j16tWFY05PT9Fut5HJZAAApmmi1+thaWmJhQGSYpCn0JMnT7C/v3/hsvnVq1eYnZ2FqqoAzjq88vk8Hj9+DMMwuNyWEIM8hT799FN8/PHHME1z5LFxy2rDMJDJZLCwsIBerzf2PJpuDPIUCofDWF1dRa1Wg+M4vscuWlZHo1HE43GkUikuryX00W2/ALqc+fl5/Pzzz/j11199x8ctq4+Pj72vASCbzcK2bZbQS4Qz8pQKh8NIJpO+2fWiZbWmaV6Lpq7rODg44PJaMgzyFMvlcvj999+9r8ctqw8ODqAoijdGVVVks1kuryXD8j2J1Ot11Go11Ot1LptvQJCubc7Ikhgsqwe/YYL+WzgjE11SkK5tzshEEmD5HtEEcEYmoitjkIkkcO3le0R0/TgjE0mAQSaSAINMJAEGmUgCDDKRBBhkIgkwyEQSYJCJJMAgE0mAQSaSAINMJAEGmUgCDDKRBP4CGN3PIi1PuBIAAAAASUVORK5CYII=" width="241" height="167">

prakash.shiwakoti
 
Posts: 13
Joined: Wed Nov 03, 2021 3:39 pm

Fri May 20, 2022 10:28 am

Hello,

Thanks for your inquiry.
For the issue of the image is not centered in Word document after conversion, I reproduced and logged it into our bug tracking system with the ticket number SPIREDOC-7854. Our development team will investigate and fix it. Once it is resolved, I’ll inform you in time. Sorry for the inconvenience caused.

In addition, for the similar issue of table you mentioned, I used the following code and the Spire.Doc _10.5.0 that my colleague Annika offered to you to test your html code and didn’t reproduce your issue. I attached the resulting Word document for your reference.
If you have any issue, just feel free to contact us.

Code: Select all
 //Get html string.
            String HTML = File.ReadAllText(@test.txt");

            //Create a new document.
            Document document = new Document();

            //Add a section.
            Section sec = document.AddSection();

            //Add a paragraph and append html string.
            sec.AddParagraph().AppendHTML(HTML);

            //Save it to a Word file.
            document.SaveToFile(@"testhtml_table.docx", FileFormat.Docx);


Sincerely,
Abel,
E-iceblue Support team
User avatar

Abel.He
 
Posts: 860
Joined: Tue Mar 08, 2022 2:02 am

Fri May 20, 2022 2:09 pm

Abel, thanks for quick response. Table isn't the only content of HTML (I sent sample focused on that). I see table is center aligned if I load that as part of added paragraph. But, our process loads the entire HTML content to Document object. Sample code is attached. Any suggestions for me in this scenario? Do I individually process each Table object after loading the html in Document?

If we need to link this post and the other I am working with Annika, please do so. Once your testing passes, please send me the libraries so I can test on my end.

Code: Select all
  Spire.Doc.Document document = new Spire.Doc.Document();
            TextReader reader = new StreamReader(new MemoryStream(Encoding.UTF8.GetBytes(htmlContent))); //htmlContent is entire content that contains the table in question
            document.LoadHTML(reader, Spire.Doc.Documents.XHTMLValidationType.None);

prakash.shiwakoti
 
Posts: 13
Joined: Wed Nov 03, 2021 3:39 pm

Mon May 23, 2022 10:38 am

Hello,

Thanks for your feedback.
If the table is centered in HTML file, we generally keep the centered style in Word document after converting HTML to Word. However, I also recommend that you center the table object after converting HTML to Word. By this way, your table object will be centered in Word regardless of whether your table object is centered or not in HTML file. Please refer to the following sample code.
In addition, for the issue you communicated with Anninka, once the test phase passed, Annika will inform you in time.

Code: Select all
Document document = new Document();
          //htmlContent is entire content that contains the table in question
            TextReader reader = new StreamReader(new MemoryStream(File.ReadAllBytes(htmlcontent)));
            document.LoadHTML(reader, XHTMLValidationType.None);
            Section section = document.Sections[0];
            foreach (Table table in section.Tables)
            {
                //Setting the table to be centered
                table.TableFormat.HorizontalAlignment = Spire.Doc.Documents.RowAlignment.Center;
            }
            document.SaveToFile(@"../../data/result.docx", FileFormat.Docx);

Sincerely,
Abel
E-iceblue support team
User avatar

Abel.He
 
Posts: 860
Joined: Tue Mar 08, 2022 2:02 am

Mon May 23, 2022 2:04 pm

Hi, I am not sure its that simple. The html may have centered tables. May have tables centered as well as non-centered tables - Can't center align all tables from word doc.

Again, here is sample of html that has centered/uncentered text and tables

Code: Select all
<p style="margin: 0in; line-height: 107%; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="font-size: 9pt; line-height: 107%; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;">Left aligned text</span></p>\n<p style="margin: 0in; line-height: 107%; font-size: 11pt; font-family: Calibri, sans-serif; text-align: center;"><span style="font-size: 9pt; line-height: 107%; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;">center aligned table&nbsp;</span></p>\n<div align="center">\n<table class="MsoTableGrid" style="width: 75.48%; border-collapse: collapse; border: none;" border="1" cellspacing="0" cellpadding="0">\n<tbody>\n<tr style="height: 6.25pt;">\n<td style="width: 100%; border: 1pt solid windowtext; background: rgb(217, 217, 217); padding: 0in 5.4pt;" colspan="2">\n<p style="margin: 0in; text-align: center; line-height: normal; font-size: 11pt; font-family: Calibri, sans-serif;"><strong><span style="font-size: 9pt;">COVID-19 <span style="color: black;">STRESS ANALYSIS</span></span></strong></p>\n</td>\n</tr>\n<tr style="height: 12.6pt;">\n<td style="width: 71.78%; border-right: 1pt solid windowtext; border-bottom: 1pt solid windowtext; border-left: 1pt solid windowtext; border-image: initial; border-top: none; padding: 0in 5.4pt;">\n<p style="margin: 0in; text-align: center; line-height: normal; font-size: 11pt; font-family: Calibri, sans-serif;"><strong><span style="font-size: 9pt;">Test 1</span></strong></p>\n</td>\n<td style="width: 28.22%; border-top: none; border-left: none; border-bottom: 1pt solid windowtext; border-right: 1pt solid windowtext; padding: 0in 5.4pt;">\n<p style="margin: 0in; text-align: center; line-height: normal; font-size: 11pt; font-family: Calibri, sans-serif;"><strong><span style="font-size: 9pt;">8.00%</span></strong></p>\n</td>\n</tr>\n<tr style="height: 12.6pt;">\n<td style="width: 71.78%; border-right: 1pt solid windowtext; border-bottom: 1pt solid windowtext; border-left: 1pt solid windowtext; border-image: initial; border-top: none; padding: 0in 5.4pt;">\n<p style="margin: 0in; text-align: center; line-height: normal; font-size: 11pt; font-family: Calibri, sans-serif;"><strong><span style="font-size: 9pt;">Test 2</span></strong></p>\n</td>\n<td style="width: 28.22%; border-top: none; border-left: none; border-bottom: 1pt solid windowtext; border-right: 1pt solid windowtext; padding: 0in 5.4pt;">\n<p style="margin: 0in; text-align: center; line-height: normal; font-size: 11pt; font-family: Calibri, sans-serif;"><strong><span style="font-size: 9pt;">97.28%</span></strong></p>\n</td>\n</tr>\n<tr style="height: 12.6pt;">\n<td style="width: 71.78%; border-right: 1pt solid windowtext; border-bottom: 1pt solid windowtext; border-left: 1pt solid windowtext; border-image: initial; border-top: none; padding: 0in 5.4pt;">\n<p style="margin: 0in; text-align: center; line-height: normal; font-size: 11pt; font-family: Calibri, sans-serif;"><strong><span style="font-size: 9pt;">Test 3</span></strong></p>\n</td>\n<td style="width: 28.22%; border-top: none; border-left: none; border-bottom: 1pt solid windowtext; border-right: 1pt solid windowtext; padding: 0in 5.4pt;">\n<p style="margin: 0in; text-align: center; line-height: normal; font-size: 11pt; font-family: Calibri, sans-serif;"><strong><span style="font-size: 9pt;">1.31x</span></strong></p>\n</td>\n</tr>\n</tbody>\n</table>\n</div>\n<p style="margin: 0in; line-height: 107%; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="font-size: 9pt; line-height: 107%; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;">&nbsp;</span></p>\n<p style="margin: 0in; line-height: 107%; font-size: 11pt; font-family: Calibri, sans-serif;">&nbsp;</p>\n<p style="margin: 0in; line-height: 107%; font-size: 11pt; font-family: Calibri, sans-serif;"><span style="font-size: 9pt; line-height: 107%; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;">left aligned table</span></p>\n<table style="border-collapse: collapse; width: 28.0233%; height: 39px;" border="1"><colgroup><col style="width: 50.0582%;"><col style="width: 50.0582%;"></colgroup>\n<tbody>\n<tr>\n<td>One</td>\n<td>Two</td>\n</tr>\n<tr>\n<td>Three</td>\n<td>four</td>\n</tr>\n</tbody>\n</table>


I've attached the web view as well as word document that Spire.doc is producing by default.

prakash.shiwakoti
 
Posts: 13
Joined: Wed Nov 03, 2021 3:39 pm

Tue May 24, 2022 10:11 am

Hello,

Thanks for your feedback.
After investigation, I reproduced your issue. I looked at your HTML source code and found that you only set align="center" for div. When I set align="center" for the table, the table is centered in Word file after converting HTML file to Word file. So I recommend that you set align=”center” to the table object separately to meet your requirement.
If you have any issue, just feel free to contact us.

Sincerely
Abel,
E-iceblue support team
User avatar

Abel.He
 
Posts: 860
Joined: Tue Mar 08, 2022 2:02 am

Tue May 24, 2022 1:57 pm

Abel, I know what you are saying. But we don't have control over HTML, just like spire.doc we use another library for HTML editor. If browsers display the table as centered, I would expect word document to do the same. Users create their content and they expect to see similar formatting in both browser and word document.

prakash.shiwakoti
 
Posts: 13
Joined: Wed Nov 03, 2021 3:39 pm

Wed May 25, 2022 3:16 am

Hello.

Thanks for your feedback.
I communicate with our development team about your requirement. And I have logged your issue into our bug tracking system with the ticket number SPIREDOC-7884. Our development team will investigate and fix it. Once it is resolved, I will inform you in time. Sorry for the inconvenience caused.

Sincerely,
Abel
E-iceblue support team
User avatar

Abel.He
 
Posts: 860
Joined: Tue Mar 08, 2022 2:02 am

Mon Jun 27, 2022 11:12 am

Abel, any update on this?

prakash.shiwakoti
 
Posts: 13
Joined: Wed Nov 03, 2021 3:39 pm

Wed Jun 29, 2022 8:55 am

Hello,

For the issue with the number SPIREDOC-7854, there are updates for you. The result document of using Spire.Doc to convert the HTML code you provided (as following code) to Word file is the same as the result document generated by MS Word. And our products follow the MS Office specification document. In cases where the result document is the same as MS’s result document, we don’t treat it as a bug. Thanks for your understanding.
If you have any issue, just feel free to contact us.

Code: Select all
<img id="c6815ba7ec944ddfa2b44908ac8b3a50" style="display: block; margin-left:auto; margin-right: auto;" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPIAAACtCAYAAACKsCKGAAAMoUlEQVR4nO3dMWgb1wMG8E9/OkSG0EGiMYioRxcdGSJjPKjIXTRYGjJZoA6ys9okQ6DUU5AxEp1cEIVg3KVDdVoEMi14kBcvviMaQqgDgbvFFQ4CUXTQLHft9DoYXXWW3Pxry/bp9ftN8emdLJn78t5Tcp9DQggBIppq/7vtF0BEV8cgE0mAQSaSAINMJAEGmUgCDDKRBBhkIgkwyEQSCAHgfwghuqLb/n9VnJGJJMAgE0ngI8uybvs1EE2lRCJx2y/BwxmZSAIMMpEEGGQiCTDIRBJgkIkkwCATSYBBJpIAg0wkAQaZSAIMMpEEGGQiCTDIRBJgkIkkwCATSYBBJpIAg0wkAQaZSAIs3yOaAJbvEdGVMchEEvjoupcEoVDI+/NtLz+IJmn42r5tnJGJJMAgE0mAQSaSAINMJAEGmUgCDHJAua6L9fV1hEIhhEIhrK+vw3XdkXH1en3sGMuyMDc3h1AohLm5OViW5XvO4bGGYSCXy8G27Rt9jzQ5DHJA7e3todPpoN/vwzRNtNttvH792jfGMAxsb2/DNE1vzN7eHmzbxrNnz7CxsQHHcZBKpVCtVvHy5UsAwLt37/D+/Xucnp7Ctm28ePEC3333HSKRyG28VZoABjnAer0e+v3+hY93Oh3Mzs4iGo0iHo8jlUrh5OQE/X4fvV4PiqIgHA7jiy++QKfTwR9//OE733VdPH/+HI8ePQrULySjf49BDqjl5WWkUimoqgpVVbGxsYF0Ou0bc3JyAkVRMDMz4zs+CH80GvUdTyaTAID79+/jwYMHePv2LWKxGIrF4jW+E7oJDHJAOY6DTqfjfV2r1a68h71z5w52d3chhEChUMD+/j4ePnzo7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aV6Lpq7rODg44PJaMgzyFMvlcvj999+9r8ctqw8ODqAoijdGVVVks1kuryXD8j2J1Ot11Go11Ot1LptvQJCubc7Ikhgsqwe/YYL+WzgjE11SkK5tzshEEmD5HtEEcEYmoitjkIkkcO3le0R0/TgjE0mAQSaSAINMJAEGmUgCDDKRBBhkIgkwyEQSYJCJJMAgE0mAQSaSAINMJAEGmUgCDDKRBP4CGN3PIi1PuBIAAAAASUVORK5CYII=" width="241" height="167">


Sincerely
Abel
E-iceblue support team
User avatar

Abel.He
 
Posts: 860
Joined: Tue Mar 08, 2022 2:02 am

Tue Sep 20, 2022 5:55 am

Hello,

Thanks for your patience!
Glad to inform you that we just released Spire.Doc 10.9.1 which fixes the issue with SPIREDOC-7884.
Please download the new version from the following links to test.

Website download link: https://www.e-iceblue.com/Download/down ... t-now.html
Nuget download link: https://www.nuget.org/packages/Spire.Doc/10.9.1

Sincerely
Abel
E-iceblue support team
User avatar

Abel.He
 
Posts: 860
Joined: Tue Mar 08, 2022 2:02 am

Return to Spire.Doc