Opening .onetoc2 System.NullReferenceException


#1

var note = new Aspose.Note.Document(@“J:\TestEMLFolders\14-3301-10\Open Notebook.onetoc2”);

opening a one note table of contents file via filename or stream throw a System.NullReferenceException


VER 2.4.0.0

#2

Hi Thomas,


Thank you for writing to Aspose Support team.

We have tested this issue with the latest version of the API and following sample code at our end, but couldn’t notice any Null Reference Exception as you have mentioned. Please try it with the latest version of the API and let us know if you face any issue.

Sample Code:

Notebook notebook = new Notebook(“780448\Open Notebook.OneToc2”);

#3

thanks that works. i was using the older api because i need to open via a stream

n = new notebook(stream strm) - not in new api
and notebook only has a filename option to open.
n = new notebook(string filename)

#4

Hi Thomas,


Thank you for writing back.

The request for loading notebook from stream has been logged as NOTENET-2151 in our issue tracking system. Our Product team will consider it for implementation and we’ll update you here once there is some information available in this regard.

#5

The issues you have found earlier (filed as NOTENET-2151) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.

#6

The issues you have found earlier (filed as ) have been fixed in this Aspose.Words for JasperReports 18.3 update.