SpreadsheetDocument.ChangeDocumentType Method
Changes the document type.
Namespace: DocumentFormat.OpenXml.Packaging
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'Declaration
Public Sub ChangeDocumentType ( _
newType As SpreadsheetDocumentType _
)
'Usage
Dim instance As SpreadsheetDocument
Dim newType As SpreadsheetDocumentType
instance.ChangeDocumentType(newType)
public void ChangeDocumentType(
SpreadsheetDocumentType newType
)
Parameters
- newType
Type: DocumentFormat.OpenXml.SpreadsheetDocumentType
The new type of the document.
Remarks
The WorkbookPart will be changed.