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 Apr 02, 2015 5:41 am

HTML page code
Code: Select all
<i>f</i>(<i>x</i>)=<img align="middle" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACcAAAAlCAYAAADBa/A+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADvSURBVFhH7ZNbCsUwCES7/03nIkSwRh1rL00+PCCJVaeTPq5xMG2uSpuLuC7fwlZzZOxYc0TZnDwZ76WYzjVRjQnn57oQmdC5x9ses6IHUO7xd3NW8xNzVPPCwrtOLBXdbAlHgpJMX9SzVGQz7fUw55Eo87ZnqVAzh8x5z8jrHpl6pBNPb6bNVWlzVW7m5N+zKyT9Wqu0OYn3fVl8am754IHBz5+cpGxOP3qda9CNLNAMVESmmG3mMjw1lzrwXF0iEap5gUj1zNUlI0Jk+4i05lxNWCR1ysIh0Ixb1SJQCNQJ1pERgRU30uaqHGxujB+eJddCfZBWMwAAAABJRU5ErkJggg==" />

save to Doc file
Code: Select all
   
            Document doc2 = new Document();
            doc2.AddSection();
            Paragraph p = doc2.Sections[0].AddParagraph();
            p.AppendHTML(File.ReadAllText(@"test.html"));
            doc2.SaveToFile(@"test.doc", FileFormat.Doc);


how to set the IMG at vertical-align:middle in DOC file??

shanvenleo126
 
Posts: 3
Joined: Fri Mar 27, 2015 1:09 pm

Thu Apr 02, 2015 7:48 am

Hello,

Thanks for your inquiry.
Sorry that at present there is no method to set the IMG vertical-align as
the Paragraph.Format.TextAliganment property is not opened. And we will inform you when it is opened.

Best Regards,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Thu Apr 02, 2015 9:33 am

do you have a schedule?

shanvenleo126
 
Posts: 3
Joined: Fri Mar 27, 2015 1:09 pm

Fri Apr 03, 2015 1:49 am

Hello,

Now, this issue has been resolved and our test team is testing. Once the new version is released, we will let you know ASAP.

Thanks,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Fri Apr 03, 2015 8:23 am

Hello,

The new version has been released, which can resolve your isuue. Please download Spire.Doc Pack(hot fix ) version: 5.3.83 from the following link and refer to the codes provided to have a try:
http://www.e-iceblue.com/Download/downl ... t-now.html

Codes:
Code: Select all
Paragraph.Format.TextAliganment = TextAlignment.Center;

If there are any questions, welcome to get it back to us.
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Thu Apr 09, 2015 6:52 am

Hello,

Has your issue been resolved? Could you please give us some feedback at your convenience?

Thanks,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Fri Apr 10, 2015 11:31 am

not resolved,the file is my test code.you can test it.thx.

shanvenleo126
 
Posts: 3
Joined: Fri Mar 27, 2015 1:09 pm

Mon Apr 13, 2015 1:57 am

Hello,

Sorry for delay as weekend.
Please set the Paragraph.Format.TextAliganment property as “center” after the Paragraph.AppendHTML() method.
If there are any questions, welcome to get it back to us.

Best Regards,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Return to Spire.Doc