Hi William,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
Thanks for your patience. I have devised a workaround for you that wil fulfill your requirement. Please utilize the code snippet below to accomplish your task. I have also attached the output PPTX file for your reference.
PresentationEx pres = new PresentationEx("d://ppt//example.pptx");
//License lic = new License();
//lic.SetLicense("Aspose.Slides.Lic");
SlideEx slide = pres.Slides[0];
foreach (ShapeEx shp in slide.Shapes)
{
if (shp is AutoShapeEx)
{
AutoShapeEx ashp = (AutoShapeEx)shp;
if (ashp.TextFrame != null)
{
for (int paracount = 0; paracount < ashp.TextFrame.Paragraphs.Count; paracount++)
{
ParagraphEx para = ashp.TextFrame.Paragraphs[paracount];
foreach (PortionEx port in para.Portions)
{
port.Text = ParseValues(port.Text);
}
}
}
}
}
Response.ContentType = "application/vnd.ms-powerpoint";
Response.AppendHeader("Content-Disposition", "attachment; filename=export_example.pptx");
Response.Flush();
System.IO.Stream st = this.Response.OutputStream;
pres.Write(st);
Response.End();
Thanks are Regards,