Last active
August 29, 2015 14:09
-
-
Save jesslilly/e707c3401ef975205ecb to your computer and use it in GitHub Desktop.
Word SaveAs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
_document.SaveAs( | |
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