How to get EmbedTrueTypeFonts in an existed PPT Programatically?

A

Asian

Hello,
I am into PPT Automation.

I'd like to save existed powerpoint file with another filename and file
format.
(e.g. Save an "existed fileA.ppt" to "new file based on A.pptx")
Environment:
Visual Studio 2008 (using Microsoft.Office.Interop.PowerPoint)
Office2007 and Office2003
Lang: C#
I will use
"Microsoft.Office.Interop.PowerPoint.Presentation.SaveAs(Filename,
FileFormat, EmbedTrueTypeFonts);".
I'd like to inherit EmbedTrueTypeFonts value in the original file as the 3rd
parameter.
But I don't know which MsoTriState should be specified.
I tried to specify MsoTriState.msoTriStateMixed, and it seems to work fine.
(to inherit the original one.)
But I'm not sure if it is correct way.
Please help.
Thanks.
 
A

Asian

Thank you.
Embedded property seems to get if it's embedded or not.
But which state should be specify in SaveAs methond?
There are 5 options;
MsoTriState.msoCTrue 1
MsoTriState.msoFalse 0
MsoTriState.msoTriStateMixed -2
MsoTriState.msoTriStateToggle -3
MsoTriState.msoTrue -1
Should I specify Minimum one?
Does someone know what each enum means?
MsoTriState.msoTriStateMixed
I tried to specify MsoTriState.msoTriStateMixed, and it seems to work fine.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top