Hi Nguyen,
Paragraph para = doc.FirstSection.Body.FirstParagraph;
HtmlSaveOptions options = new HtmlSaveOptions(SaveFormat.Html);
options.ExportImagesAsBase64 = true;
string html = para.ToString(options);
HtmlSaveOptions options = new HtmlSaveOptions(SaveFormat.Html);
options.ExportImagesAsBase64 = true;
my code is: string html = para.ToString(SaveFormat.Html)
2. I highlight the img tag in the html result. As you can see, src point to encrypted data of image which can not display on a web page. I need the src point to a location where the image on my document is saved in order to display the image on web page.
Trong PowerPoint 2013, nút lệnh <img src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABsAAAAWBAMAAADDZPq4AAAAAXNSR0ICQMB9xQAAADBQTFRFAAAA/////584//fnAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEXHcIQAAAAlwSFlzAAAOxgAADsQB2OOvEAAAADVJREFUKM9jUEIGCgyUcgXBQAgHVxFGQLmKQEkkLposXq4yyGBhZGcIoboKLxfsJmr4F8EFAOVNJt+CqhWsAAAAAElFTkSuQmCC\" width=\"27\" height=\"22\" alt=\"\" style=\"-aw-left-pos:0pt; -aw-rel-hpos:column; -aw-rel-vpos:paragraph; -aw-top-pos:0pt; -aw-wrap-type:inline\" /> tương ứng với thao tác nhấn phím (tổ hợp phím) nào?
" stringHi Nguyen,
Paragraph para = doc.FirstSection.Body.FirstParagraph;
Document tempDoc = (Document)doc.Clone();
tempDoc.FirstSection.Body.RemoveAllChildren();
tempDoc.FirstSection.Body.AppendChild(tempDoc.ImportNode(para, true, ImportFormatMode.UseDestinationStyles));
tempDoc.Save(MyDir + @"16.3.0.html");
Hope, this helps.