SPContentType.NewDocumentControl Property

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

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

public string NewDocumentControl { get; set; }

Property Value

Type: System.String
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;