Document.Save Method (String, SaveFormat)

Aspose.Note for .NET API

DocumentSave Method (String, SaveFormat)

Saves the OneNote document to a file in the specified format.

Namespace:  Aspose.Note
Assembly:  Aspose.Note (in Aspose.Note.dll) Version: 18.1
Syntax
public void Save(
	string fileName,
	SaveFormat format
)
Public Sub Save ( 
	fileName As String,
	format As SaveFormat
)
public:
void Save(
	String^ fileName, 
	SaveFormat format
)
member Save : 
        fileName : string * 
        format : SaveFormat -> unit 

Parameters

fileName
Type: SystemString
The full name for the file. If a file with the specified full name already exists, the existing file is overwritten.
format
Type: Aspose.NoteSaveFormat
The format in which to save the document.
Exceptions
ExceptionCondition
IncorrectDocumentStructureExceptionThe document structure violates specification.
UnsupportedSaveFormatExceptionRequested save format is not supported.
See Also