Edit

Share via


Documents.OpenNoRepairDialog Method

Definition

Opens the specified document and adds it to the Documents collection.

public Microsoft.Office.Interop.Word.Document OpenNoRepairDialog (ref object FileName, ref object ConfirmConversions, ref object ReadOnly, ref object AddToRecentFiles, ref object PasswordDocument, ref object PasswordTemplate, ref object Revert, ref object WritePasswordDocument, ref object WritePasswordTemplate, ref object Format, ref object Encoding, ref object Visible, ref object OpenAndRepair, ref object DocumentDirection, ref object NoEncodingDialog, ref object XMLTransform);
abstract member OpenNoRepairDialog : obj * obj * obj * obj * obj * obj * obj * obj * obj * obj * obj * obj * obj * obj * obj * obj -> Microsoft.Office.Interop.Word.Document
Public Function OpenNoRepairDialog (ByRef FileName As Object, Optional ByRef ConfirmConversions As Object, Optional ByRef ReadOnly As Object, Optional ByRef AddToRecentFiles As Object, Optional ByRef PasswordDocument As Object, Optional ByRef PasswordTemplate As Object, Optional ByRef Revert As Object, Optional ByRef WritePasswordDocument As Object, Optional ByRef WritePasswordTemplate As Object, Optional ByRef Format As Object, Optional ByRef Encoding As Object, Optional ByRef Visible As Object, Optional ByRef OpenAndRepair As Object, Optional ByRef DocumentDirection As Object, Optional ByRef NoEncodingDialog As Object, Optional ByRef XMLTransform As Object) As Document

Parameters

FileName
Object

The name of the document (paths are accepted).

ConfirmConversions
Object

True to display the Convert File dialog box if the file isn't in Microsoft Word format.

ReadOnly
Object

True to open the document as read-only. This argument doesn't override the read-only recommended setting on a saved document. For example, if a document has been saved with read-only recommended turned on, setting the ReadOnly argument to False will not cause the file to be opened as read/write.

AddToRecentFiles
Object

True to add the file name to the list of recently used files at the bottom of the File menu.

PasswordDocument
Object

The password for opening the document.

PasswordTemplate
Object

The password for opening the template.

Revert
Object

Controls what happens if FileName is the name of an open document. True to discard any unsaved changes to the open document and reopen the file. False to activate the open document.

WritePasswordDocument
Object

The password for saving changes to the document.

WritePasswordTemplate
Object

The password for saving changes to the template.

Format
Object

The file converter to be used to open the document. Can be one of the WdOpenFormat constants. The default value is wdOpenFormatAuto.

Encoding
Object

The document encoding (code page or character set) to be used by Microsoft Word when you view the saved document. Can be any valid MsoEncoding enumeration value. The default value is the system code page.

Visible
Object

True if the document is opened in a visible window. The default value is True.

OpenAndRepair
Object

True to repair the document to prevent document corruption.

DocumentDirection
Object

Indicates the horizontal flow of text in a document. Can be any valid WdDocumentDirection constant. The default value is wdLeftToRight.

NoEncodingDialog
Object

True to skip displaying the Encoding dialog box that Word displays if the text encoding cannot be recognized. The default value is False.

XMLTransform
Object

Specifies a transform to use.

Returns

_Document

Applies to