Skip to content

Instantly share code, notes, and snippets.

@sergey-tihon
Created March 15, 2020 09:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sergey-tihon/59808739a496667b041f0b3c162cb912 to your computer and use it in GitHub Desktop.
Save sergey-tihon/59808739a496667b041f0b3c162cb912 to your computer and use it in GitHub Desktop.
Clippit-intro
public void PublishSlides(string sourceFileName, string resultDirectory)
{
Application ppApp = null;
try
{
ppApp = new Application
{
DisplayAlerts = PpAlertLevel.ppAlertsNone
};
const MsoTriState msoFalse = MsoTriState.msoFalse;
var presentation = ppApp.Presentations.Open(sourceFileName,
msoFalse, msoFalse, msoFalse);
presentation.PublishSlides(resultDirectory, true, true);
presentation.Close();
}
finally
{
ppApp?.Quit();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment