_ExternalApplication2.NewFromSolutionWithInputParameters 方法

在指定了表单模板和输入参数的情况下,使用指定的表单模板创建新的表单。

命名空间:  Microsoft.Office.Interop.InfoPath.SemiTrust
程序集:  Microsoft.Office.Interop.InfoPath.SemiTrust(位于 Microsoft.Office.Interop.InfoPath.SemiTrust.dll 中)

语法

声明
Sub NewFromSolutionWithInputParameters ( _
    bstrSolutionURI As String, _
    bstrInputParameters As String _
)
用法
Dim instance As _ExternalApplication2
Dim bstrSolutionURI As String
Dim bstrInputParameters As String

instance.NewFromSolutionWithInputParameters(bstrSolutionURI, _
    bstrInputParameters)
void NewFromSolutionWithInputParameters(
    string bstrSolutionURI,
    string bstrInputParameters
)

参数

  • bstrSolutionURI
    类型:System.String

    要基于其创建新表单的表单模板的统一资源标识符 (URI)。

  • bstrInputParameters
    类型:System.String

    一个或多个以与号 (&) 字符分隔的名称/值对。

备注

若要使用传递给 bstrInputParameters 参数的输入参数,则在 bstrSolutionURI 参数中指定的表单必须包含 OnLoad 事件处理程序,该事件处理程序使用 _XDocument4 类的 InputParameters 属性检索输入参数值,然后用这些值执行某些操作。有关如何执行此操作的示例,请参阅 InputParameters 属性主题。

另请参阅

引用

_ExternalApplication2 接口

_ExternalApplication2 成员

Microsoft.Office.Interop.InfoPath.SemiTrust 命名空间