Click here to Skip to main content
15,887,485 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Text is getting overlapped in the PPTX . I need to shrink the text programatically using openXML library in C#.

The solution is Open PPTX file-Right click ->Text options-> Do not Autofit-> shrink text on overflow


The above has to be implemented programatically using openxml library in C#.Please let me know the source code for this

What I have tried:

I have tried to reduce the sixe of the text font in the PPTX
Posted
Updated 2-Apr-18 4:17am

1 solution

You're interested in the TextFrame.AutoSize property. It's an enumeration of the following values: ppAutoSizeMixed, ppAutoSizeNone, and ppAutoSizeShapeToFitText.
 
Share this answer
 
Comments
suhruth2011 3-Apr-18 2:55am    
Hi ,
TextFrame.AutoSize is included in Microsoft.Office.Interop.PowerPoint.dll namespace but I need it to implement it using openXML C# which is using DocumentFormat.OpenXml or
DocumentFormat.OpenXml.Drawing
Member 13167633 20-Aug-19 4:36am    
have you solve the problem? i have the same question.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900