I want to save as a document without a password. The method SaveAs 4. and 6. parameters Password --> A password string for opening the document. (See Remarks below.) WritePassword --> A password string for saving changes to the document. (See Remarks below.) If I use the object missing = string.Empty and object missing = System.Reflection.Missing.Value lines the document saved corrupted and it can not be opened. What to do to save as the document without password. Please help
object FileName = RIS_CLIENT.Properties.Settings.Default.DownloadPath + "\\" + m_docFileName + ".docm";
object FileFormat = Microsoft.Office.Interop.Word.WdSaveFormat.wdFormatXMLDocumentMacroEnabled;
object LockComments = false;
object AddToRecentFiles = false;
object ReadOnlyRecommended = false;
object EmbedTrueTypeFonts = false;
object SaveNativePictureFormat = true;
object SaveFormsData = false;
object SaveAsAOCELetter = false;
object missing = "pass";
//object missing = String.Empty;
//object missing = System.Reflection.Missing.Value;
objWinWordControl.document.SaveAs(ref FileName, ref FileFormat, ref LockComments, ref missing,
ref AddToRecentFiles, ref missing, ref ReadOnlyRecommended, ref EmbedTrueTypeFonts,
ref SaveNativePictureFormat, ref SaveFormsData, ref SaveAsAOCELetter);