NavigateToPage method

A

andrea

Hi,
I want to open onenote and display a specified page programmatically

I tried the OneNote.CSimpleImporter and
NavigateToPage. Method .
but I always had an error message

example: CSI.NavigateToPage bstrPath:="xxx.one", StrGuid:="test"

I guess the problem is with the page GUID StrGuid (variable)
anyone can help providing the code ( vba ) please.
Or have on idea about the way to get the page guid.

I use onenote 2003 sp1
thanks
 
K

Kathy J

Andrea,
You are probably going to have to create a GUID. My co-author, Bill Jelen,
wrote up a very useful chapter on using VBA to push content to OneNote.
Rather than giving the details here, check out this link:
http://www.mrexcel.com/tip078.shtml

It has most of what you need to get started. (By the way, we had lots of fun
getting it to work. The article gives the details on what we were missing
the first couple of times around.)

--
Kathryn Jacobs, Microsoft MVP PowerPoint and OneNote
Co-Author of Life on OneNote from Holy Macro! Books
Get OneNote answers at http://www.onenoteanswers.com
Get PowerPoint answers at http://www.powerpointanswers.com
Want to learn OneNote? Check out
http://www.eclecticacademy.com/newclasses.htm#onenote

I believe life is meant to be lived. But:
if we live without making a difference, it makes no difference that we lived
 
A

andrea

kathy ,THank you for replying
but is there any way to get the GUID of an existing page created by Onenote
in tthe case i want to display it programmatically
 
D

D Devlin

At this time there is no way to get the GUID of an existing
page that you did not programmatically create short of hacking
the OneNote file format. I decoded a majority of a while ago
for a project I was considering and scrapped. Not too bad.
 
K

Kathy J

Thanks for jumping in. I thought this was the answer she was going to get,
but hadn't had time to mess with it yet.

--
Kathryn Jacobs, Microsoft MVP PowerPoint and OneNote
Co-Author of Life on OneNote from Holy Macro! Books
Get OneNote answers at http://www.onenoteanswers.com
Get PowerPoint answers at http://www.powerpointanswers.com
Want to learn OneNote? Check out
http://www.eclecticacademy.com/newclasses.htm#onenote

I believe life is meant to be lived. But:
if we live without making a difference, it makes no difference that we lived
 

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