Instantly share code, notes, and snippets.

@jesslilly /SaveAs.cs
Last active Aug 29, 2015

What would you like to do?
Word SaveAs
object FileName = tempFilePath;
object FileFormat = msWord.WdSaveFormat.wdFormatFilteredHTML;
object LockComments = false;
object Password = System.Reflection.Missing.Value;
object AddToRecentFiles = false;
object WritePassword = System.Reflection.Missing.Value;
object ReadOnlyRecommended = false;
object EmbedTrueTypeFonts = false;
object SaveNativePictureFormat = System.Reflection.Missing.Value;
object SaveFormsData = false;
object SaveAsAOCELetter = System.Reflection.Missing.Value;
object Encoding = MsoEncoding.msoEncodingUTF8;
// Save as defaults to windows-1252
ref FileName,
ref FileFormat,
ref LockComments,
ref Password,
ref AddToRecentFiles,
ref WritePassword,
ref ReadOnlyRecommended,
ref EmbedTrueTypeFonts,
ref SaveNativePictureFormat,
ref SaveFormsData,
ref SaveAsAOCELetter,
ref Encoding
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment