DocumentClass Methods


Word Primary Interop Assembly Reference 
DocumentClass.SaveAs Method 
This method supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)

Usage

Visual Basic
Dim <span id="parameterToolTip" class="tip" tabindex="0">FileName</span> As Object
Dim <span id="parameterToolTip" class="tip" tabindex="0">FileFormat</span> As Object
Dim <span id="parameterToolTip" class="tip" tabindex="0">LockComments</span> As Object
Dim <span id="parameterToolTip" class="tip" tabindex="0">Password</span> As Object
Dim <span id="parameterToolTip" class="tip" tabindex="0">AddToRecentFiles</span> As Object
Dim <span id="parameterToolTip" class="tip" tabindex="0">WritePassword</span> As Object
Dim <span id="parameterToolTip" class="tip" tabindex="0">ReadOnlyRecommended</span> As Object
Dim <span id="parameterToolTip" class="tip" tabindex="0">EmbedTrueTypeFonts</span> As Object
Dim <span id="parameterToolTip" class="tip" tabindex="0">SaveNativePictureFormat</span> As Object
Dim <span id="parameterToolTip" class="tip" tabindex="0">SaveFormsData</span> As Object
Dim <span id="parameterToolTip" class="tip" tabindex="0">SaveAsAOCELetter</span> As Object
Dim <span id="parameterToolTip" class="tip" tabindex="0">Encoding</span> As Object
Dim <span id="parameterToolTip" class="tip" tabindex="0">InsertLineBreaks</span> As Object
Dim <span id="parameterToolTip" class="tip" tabindex="0">AllowSubstitutions</span> As Object
Dim <span id="parameterToolTip" class="tip" tabindex="0">LineEnding</span> As Object
Dim <span id="parameterToolTip" class="tip" tabindex="0">AddBiDiMarks</span> As Object
Dim documentClass1 As DocumentClass
documentClass1.SaveAs(<span id="parameterToolTip" class="tip" tabindex="0">FileName</span>, <span id="parameterToolTip" class="tip" tabindex="0">FileFormat</span>, <span id="parameterToolTip" class="tip" tabindex="0">LockComments</span>, <span id="parameterToolTip" class="tip" tabindex="0">Password</span>, <span id="parameterToolTip" class="tip" tabindex="0">AddToRecentFiles</span>, <span id="parameterToolTip" class="tip" tabindex="0">WritePassword</span>, <span id="parameterToolTip" class="tip" tabindex="0">ReadOnlyRecommended</span>, <span id="parameterToolTip" class="tip" tabindex="0">EmbedTrueTypeFonts</span>, <span id="parameterToolTip" class="tip" tabindex="0">SaveNativePictureFormat</span>, <span id="parameterToolTip" class="tip" tabindex="0">SaveFormsData</span>, <span id="parameterToolTip" class="tip" tabindex="0">SaveAsAOCELetter</span>, <span id="parameterToolTip" class="tip" tabindex="0">Encoding</span>, <span id="parameterToolTip" class="tip" tabindex="0">InsertLineBreaks</span>, <span id="parameterToolTip" class="tip" tabindex="0">AllowSubstitutions</span>, <span id="parameterToolTip" class="tip" tabindex="0">LineEnding</span>, <span id="parameterToolTip" class="tip" tabindex="0">AddBiDiMarks</span>)
Syntax

Visual Basic
Public Overridable Sub SaveAs( _
	<InAttribute()> Optional ByRef FileName As Object, _
	<InAttribute()> Optional ByRef FileFormat As Object, _
	<InAttribute()> Optional ByRef LockComments As Object, _
	<InAttribute()> Optional ByRef Password As Object, _
	<InAttribute()> Optional ByRef AddToRecentFiles As Object, _
	<InAttribute()> Optional ByRef WritePassword As Object, _
	<InAttribute()> Optional ByRef ReadOnlyRecommended As Object, _
	<InAttribute()> Optional ByRef EmbedTrueTypeFonts As Object, _
	<InAttribute()> Optional ByRef SaveNativePictureFormat As Object, _
	<InAttribute()> Optional ByRef SaveFormsData As Object, _
	<InAttribute()> Optional ByRef SaveAsAOCELetter As Object, _
	<InAttribute()> Optional ByRef Encoding As Object, _
	<InAttribute()> Optional ByRef InsertLineBreaks As Object, _
	<InAttribute()> Optional ByRef AllowSubstitutions As Object, _
	<InAttribute()> Optional ByRef LineEnding As Object, _
	<InAttribute()> Optional ByRef AddBiDiMarks As Object _
)
C#
public virtual void SaveAs(
	[In, Optional] ref object FileName, 
	[In, Optional] ref object FileFormat, 
	[In, Optional] ref object LockComments, 
	[In, Optional] ref object Password, 
	[In, Optional] ref object AddToRecentFiles, 
	[In, Optional] ref object WritePassword, 
	[In, Optional] ref object ReadOnlyRecommended, 
	[In, Optional] ref object EmbedTrueTypeFonts, 
	[In, Optional] ref object SaveNativePictureFormat, 
	[In, Optional] ref object SaveFormsData, 
	[In, Optional] ref object SaveAsAOCELetter, 
	[In, Optional] ref object Encoding, 
	[In, Optional] ref object InsertLineBreaks, 
	[In, Optional] ref object AllowSubstitutions, 
	[In, Optional] ref object LineEnding, 
	[In, Optional] ref object AddBiDiMarks
);
C++
public: Void SaveAs(
	&Object^ FileName, 
	&Object^ FileFormat, 
	&Object^ LockComments, 
	&Object^ Password, 
	&Object^ AddToRecentFiles, 
	&Object^ WritePassword, 
	&Object^ ReadOnlyRecommended, 
	&Object^ EmbedTrueTypeFonts, 
	&Object^ SaveNativePictureFormat, 
	&Object^ SaveFormsData, 
	&Object^ SaveAsAOCELetter, 
	&Object^ Encoding, 
	&Object^ InsertLineBreaks, 
	&Object^ AllowSubstitutions, 
	&Object^ LineEnding, 
	&Object^ AddBiDiMarks
);
J#
public void SaveAs(
	/*in*/System.Object FileName, 
	/*in*/System.Object FileFormat, 
	/*in*/System.Object LockComments, 
	/*in*/System.Object Password, 
	/*in*/System.Object AddToRecentFiles, 
	/*in*/System.Object WritePassword, 
	/*in*/System.Object ReadOnlyRecommended, 
	/*in*/System.Object EmbedTrueTypeFonts, 
	/*in*/System.Object SaveNativePictureFormat, 
	/*in*/System.Object SaveFormsData, 
	/*in*/System.Object SaveAsAOCELetter, 
	/*in*/System.Object Encoding, 
	/*in*/System.Object InsertLineBreaks, 
	/*in*/System.Object AllowSubstitutions, 
	/*in*/System.Object LineEnding, 
	/*in*/System.Object AddBiDiMarks
);
JScript
public function SaveAs(
	 FileName : Object, 
	 FileFormat : Object, 
	 LockComments : Object, 
	 Password : Object, 
	 AddToRecentFiles : Object, 
	 WritePassword : Object, 
	 ReadOnlyRecommended : Object, 
	 EmbedTrueTypeFonts : Object, 
	 SaveNativePictureFormat : Object, 
	 SaveFormsData : Object, 
	 SaveAsAOCELetter : Object, 
	 Encoding : Object, 
	 InsertLineBreaks : Object, 
	 AllowSubstitutions : Object, 
	 LineEnding : Object, 
	 AddBiDiMarks : Object
);

Parameters

FileName

This parameter is intended for internal use only.

FileFormat

This parameter is intended for internal use only.

LockComments

This parameter is intended for internal use only.

Password

This parameter is intended for internal use only.

AddToRecentFiles

This parameter is intended for internal use only.

WritePassword

This parameter is intended for internal use only.

ReadOnlyRecommended

This parameter is intended for internal use only.

EmbedTrueTypeFonts

This parameter is intended for internal use only.

SaveNativePictureFormat

This parameter is intended for internal use only.

SaveFormsData

This parameter is intended for internal use only.

SaveAsAOCELetter

This parameter is intended for internal use only.

Encoding

This parameter is intended for internal use only.

InsertLineBreaks

This parameter is intended for internal use only.

AllowSubstitutions

This parameter is intended for internal use only.

LineEnding

This parameter is intended for internal use only.

AddBiDiMarks

This parameter is intended for internal use only.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

See Also

Tags :


Page view tracker