Aspose.Note for .Net
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

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.

Exception | Condition |
---|---|
IncorrectDocumentStructureException | The document structure violates specification. |
UnsupportedSaveFormatException | Requested save format is not supported. |
