This documentation is archived and is not being maintained.

SPContentType.NewDocumentControl Property

Windows SharePoint Services 3

Gets or sets a string that identifies the application used to create new documents.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public string NewDocumentControl { get; set; }

Property Value

Type: System.String
A String object that contains the programmatic identifier of the application. The default value is String.Empty.

This property can be used to identify an ActiveX control for creating documents based on a form template. For example, the following code identifies the template and application to use for a particular content type, represented in the code by the local variable contentType.

contentType.DocumentTemplate = "ContentType/Forms/template.xsn";
contentType.NewDocumentControl = "Sharepoint.OpenXMLDocuments";
contentType.RequireClientRenderingOnNew = false;