Documents.OpenNoRepairDialog 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
打开指定的文档并将其添加到集合。Documents
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
参数
- FileName
- Object
文档名(可包含路径)。
- ConfirmConversions
- Object
True 显示 转换文件对话框中,如果该文件不是 Microsoft Word 格式。
- ReadOnly
- Object
为 True,则以只读方式打开文档。 此参数不会覆盖已保存文档的只读推荐设置。 例如,如果保存文档时已打开建议的只读,则将 ReadOnly
参数设置为 False 不会导致文件以读/写的形式打开。
- AddToRecentFiles
- Object
真 要将文件名添加到列表中最近使用的文件在文件菜单的底部。
- PasswordDocument
- Object
打开文档时所需的密码。
- PasswordTemplate
- Object
打开模板时所需的密码。
- Revert
- Object
控制如果 FileName
是打开文档的名称,会发生什么情况。 为 True,则放弃对打开文档的任何未保存更改并重新打开文件。 为 False,则激活打开的文档。
- WritePasswordDocument
- Object
用于保存文档更改的密码。
- WritePasswordTemplate
- Object
用于保存模板更改的密码。
- Format
- Object
用于打开文档的文件转换器。 可以是常量之 WdOpenFormat 一。 默认值为 wdOpenFormatAuto。
- Encoding
- Object
查看保存的文档时,Microsoft Word 要使用的文档编码(代码页或字符集)。 可以是任何有效的 MsoEncoding 枚举值。 默认值是系统代码页。
- Visible
- Object
如此 如果在可见窗口中打开文档。 默认值为 True。
- OpenAndRepair
- Object
真 要修复文档,以防止文档损坏。
- DocumentDirection
- Object
指示文档中文本的横排排列。 可以是任何有效的 WdDocumentDirection 常量。 默认值为 wdLeftToRight。
- NoEncodingDialog
- Object
为 True,如果无法识别文本编码,则跳过显示 Word 所显示的“编码”对话框。 默认值为 False。
- XMLTransform
- Object
指定要使用的转换。