Application.RegisterSolution Method
Office 2007
| InfoPath Developer Reference |
Version Information
Version Added: InfoPath 2003
Syntax
expression.RegisterSolution(bstrSolutionURL, bstrBehavior)
expression An expression that returns a Application object.
Parameters
| Name | Required/Optional | Data Type | Description |
|---|---|---|---|
| bstrSolutionURL | Required | String | The string that specifies the Uniform Resource Locator (URL) of the form template. This parameter can be specified as a form definition (.xsf) file or a form template (.xsn) file. |
| bstrBehavior | Optional | String | Default value is "overwrite". The string that specifies how the form template is to be installed. The only other valid value for this parameter is "new-only". |
Return Value
Nothing
Remarks
If the form template has already been registered, and "new-only" is specified for the bstrBehavior parameter, the RegisterSolution method will return an error. If "overwrite" is specified, the form template's registration record will be overwritten.
Security Level 3: Can be accessed only by fully trusted forms.
Example
In the following Visual Basic for Applications (VBA) example, the RegisterSolution method of the Application object is used to install a form template:
| Visual Basic for Applications |
|---|
|