Note that there are some explanatory texts on larger screens.

plurals
  1. POCopy Special Symbols From One PowerPoint Presentation to Another
    primarykey
    data
    text
    <p>I need to copy text from one PowerPoint presentation to another. However, I have problems copying special symbols, such as smileys, which appear in the target presentation as empty boxes. Looking at the Open XML file in the original presentation, I can see that the <code>Run</code> containing the smiley has a "SymbolFont" attribute:</p> <p><code>&lt;a:sym typeface="Wingdings" /&gt;</code></p> <p>However, in VBA, <code>Shape.TextFrame2.TextRange2.Font</code> =the Font of that <code>Run</code> - shows Arial.</p> <p>How can I determine the SymbolFont of a text <code>Run</code> using VBA or C# (not XML)? Then I could specify that SymbolFont in the target presentation.</p> <p>Perhaps there other ways for copying the text that do not involve XML?</p> <p>Note that this problem happens not only with Smileys; other special characters may show different SymbolFonts, such as:</p> <pre><code>&lt;a:symTypeface = "Symbol", PitchFamily = 18, CharacterSet = 2&gt; </code></pre> <p>Code example:</p> <pre><code>getRuns(TextRange2 paragraph) { foreach(TextRange2 run in paragraph.get_Runs(-1,-1)) _myRuns.Add(new MyRun {_text=run.Text, _font=run.Font} ); } copyRunsToParagraph(TextRange2 paragraph) { foreach(MyRun run in _myRuns) paragraph=paragraph.InsertAfter(run._text); } </code></pre> <p>Note: <code>Run.Font</code> seems to return only the Latin font, not the Symbol font, e.g., Arial but not Wingdings. As I wrote, different symbols may have different SymbolFonts, so always using Wingdings does not work.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload