This topic has not yet been rated - Rate this topic

OpenXMLDocuments.CreateNewDocument Method

Published: May 2010

Creates an XML document or form based on the specified template.

expression.CreateNewDocument(bstrTemplateLocation As String, bstrDefaultSaveLocation As String)

expression

An expression that returns an OpenXMLDocuments Control object.

bstrTemplateLocation

A string that contains the URL of the template from which the new XML document or form is created, or the programmatic identifier (progID) of the application to invoke when creating the new XML document or form.

bstrDefaultSaveLocation

A string that contains the URL that specifies a default location for saving the new XML document or form. UNC paths cannot be used.

true if the XML document or form creation succeeds; otherwise false.

Date

Description

May 2010

Initial publication

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.