Hello,
I have been working since a couple of years with Open XML, but using Word Processing. Now I am trying to apply the same configuration to Power Point Presentation.
I would like to know if it is possible to add HTML content into a Shape in OpenXML.
Are there equivalent code for this?
((MainDocumentPart)xmlPart).AddAlternativeFormatImportPart(AlternativeFormatImportPartType.Html, altChunkId);
This could be the result code in PowerPoint (slide1.xml)
<p:sp><p:nvSpPr><p:cNvPr id="4" name="IIIIDDD" /><p:cNvSpPr txBox="1" /><p:nvPr /></p:nvSpPr><p:spPr><a:xfrm><a:off x="432329" y="4131204" /><a:ext cx="11243204" cy="2574395" /></a:xfrm><a:prstGeom prst="rect"><a:avLst /></a:prstGeom></p:spPr><p:txBody><a:bodyPr wrap="square" /><a:p><a:r><a:t><!DOCTYPE html><html><head><meta charset='utf-8'/></head><body><table cellspacing='0' cellpadding='0' widht='100%' style='width:100%;border:none;border-collapse:collapse;'><thead style='background-color:#E0E1E1;color:#343B45;font-size:12px;font-weight:bold;'><tr ><td style='padding-left:10px;padding-right:10px;border:none;border-collapse:collapse;' valign='middle'><span>Attachments</span></td><td style='padding-left:10px;padding-right:10px;border:none;border-collapse:collapse;' valign='middle'><span>ID</span></td><td style='padding-left:10px;padding-right:10px;border:none;border-collapse:collapse;' valign='middle'><span>Title<</tr></tbody></table></body></html></a:t></a:r><a:endParaRPr /></a:p></p:txBody></p:sp>Obviously, the code above returns an error on Power point.
Thank you!