Gets the template xml as string. If the href attribute in the process instruction must be something
specific, use the overload with the href parameter. This is necessary when a form instance (form XML)
is not created by the InfoPath client, but some external process. E.g. when a form, that has been
published to a SharePoint site as a content type, is opened/saved in SharePoint, the href points
to the xsn in SharePoint, if the form is not create from the SharePoint interface, the xsn cannot
be found by the form instance.
Syntax
Visual Basic (Usage) | Copy Code |
---|
Dim instance As MainDataSource
Dim href As String
Dim name As String
Dim value As String
value = instance.GetTemplateXml(href, name)
|
Parameters
- href
- name
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also