Notebook.LoadChildDocument

LoadChildDocument(string)

Ajoute un nœud de document enfant. Ouvre un document OneNote existant à partir d’un fichier.

public void LoadChildDocument(string filePath)
ParamètreTaperLa description
filePathStringLe chemin du fichier.

Exemples

Montre comment charger un bloc-notes à partir d’un flux.

// Le chemin d'accès au répertoire des documents.
string dataDir = RunExamples.GetDataDir_NoteBook();

FileStream stream = new FileStream(dataDir + "Notizbuch öffnen.onetoc2", FileMode.Open);

var notebook = new Notebook(stream);

using (FileStream childStream = new FileStream(dataDir + "Aspose.one", FileMode.Open))
{
    notebook.LoadChildDocument(childStream);
}

notebook.LoadChildDocument(dataDir + "Sample1.one");

Voir également


LoadChildDocument(string, LoadOptions)

Ajoute un nœud de document enfant. Ouvre un document OneNote existant à partir d’un fichier. Permet de spécifier des options de chargement supplémentaires.

public void LoadChildDocument(string filePath, LoadOptions loadOptions)
ParamètreTaperLa description
filePathStringLe chemin du fichier.
loadOptionsLoadOptionsLes options de chargement.

Voir également


LoadChildDocument(Stream)

Ajoute un nœud de document enfant. Ouvre un document OneNote existant à partir d’un flux.

public void LoadChildDocument(Stream stream)
ParamètreTaperLa description
streamStreamLe flux.

Exemples

Montre comment charger un bloc-notes à partir d’un flux.

// Le chemin d'accès au répertoire des documents.
string dataDir = RunExamples.GetDataDir_NoteBook();

FileStream stream = new FileStream(dataDir + "Notizbuch öffnen.onetoc2", FileMode.Open);

var notebook = new Notebook(stream);

using (FileStream childStream = new FileStream(dataDir + "Aspose.one", FileMode.Open))
{
    notebook.LoadChildDocument(childStream);
}

notebook.LoadChildDocument(dataDir + "Sample1.one");

Voir également


LoadChildDocument(Stream, LoadOptions)

Ajoute un nœud de document enfant. Ouvre un document OneNote existant à partir d’un flux. Permet de spécifier des options de chargement supplémentaires.

public void LoadChildDocument(Stream stream, LoadOptions loadOptions)
ParamètreTaperLa description
streamStreamLe flux.
loadOptionsLoadOptionsLes options de chargement.

Voir également