Problem in reading OneNote Files on Sharepoint Server 2007

D

dsraina

Hi,

I have been trying to create a WSS web part in MOOS 2007 to show a tree view
of the OneNote Notebooks, stored on the MOSS 2007 server.
I have installed the OneNote 2007 on the SharePoint server which is running
on the Microsoft Virtual Server.

I get following error when I try to open the Hierarchy using the OneNote API.

HRESULT: 0x80042014 - Object Not Found.

Here is the block of code:

m_oneNoteAppl = new Microsoft.Office.Interop.OneNote.ApplicationClass();

m_oneNoteAppl.OpenHierarchy(@â€http://localhost/sites/test/OneNote Library/â€,
System.String.Empty, out strID,
Microsoft.Office.Interop.OneNote.CreateFileType.cftNone);

Could you please tell me what am I missing here? Do I need to set up
something else in WSS or MOSS to read the one note file??
 
I

Ilya Koulchin

dsraina said:
Hi,

I have been trying to create a WSS web part in MOOS 2007 to show a tree view
of the OneNote Notebooks, stored on the MOSS 2007 server.
I have installed the OneNote 2007 on the SharePoint server which is running
on the Microsoft Virtual Server.

I get following error when I try to open the Hierarchy using the OneNote API.

HRESULT: 0x80042014 - Object Not Found.

Here is the block of code:

m_oneNoteAppl = new Microsoft.Office.Interop.OneNote.ApplicationClass();

m_oneNoteAppl.OpenHierarchy(@â€http://localhost/sites/test/OneNote Library/â€,
System.String.Empty, out strID,
Microsoft.Office.Interop.OneNote.CreateFileType.cftNone);

Could you please tell me what am I missing here? Do I need to set up
something else in WSS or MOSS to read the one note file??

Looks right at first glance. Are you able to successfully open the
notebook if you type in that path into the open dialog yourself?

Ilya
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top