_XDocument2.ImportFile 方法 (String)
将指定表单导入当前表单。
命名空间: Microsoft.Office.Interop.InfoPath.SemiTrust
程序集: Microsoft.Office.Interop.InfoPath.SemiTrust(位于 Microsoft.Office.Interop.InfoPath.SemiTrust.dll 中)
语法
声明
Sub ImportFile ( _
bstrFileURI As String _
)
用法
Dim instance As _XDocument2
Dim bstrFileURI As String
instance.ImportFile(bstrFileURI)
void ImportFile(
string bstrFileURI
)
参数
bstrFileURI
类型:System.String要导入(合并)到当前打开表单的表单的统一资源标识符 (URI)。
实现
备注
使用对象模型以编程的方式导入表单等效于在用户界面中执行合并操作。
重要
此成员只能由与当前打开的表单在相同域中运行的表单访问,或者由已授予跨域权限的表单访问。
示例
在以下示例中,XDocument 对象的 ImportFile 方法用于导入表单:
thisXDocument.ImportFile(@"C:\SomeOtherForm.xml");