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)

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;
Show: