Exporting from Word to OneNote by Code

A

Al Borges

I've heard that in the most recent update, one can now export a note from
Word to OneNote using XML. Is it possible to put this note at the end, of
say, an ongoing medical record that's already been started in OneNote?

Thanks,
Al
 
B

Ben M. Schorr - MVP

I've heard that in the most recent update, one can now export a note from
Word to OneNote using XML. Is it possible to put this note at the end, of
say, an ongoing medical record that's already been started in OneNote?

News to me. OneNote doesn't have any particular XML support in it and I'm
not aware of any Word to OneNote power toys or features. You could
copy/paste the text from Word to anyplace in OneNote that you want.

--
-Ben-
Ben M. Schorr, MVP-OneNote/Outlook
Operations Coordinator
Stockholm/KSG - Honolulu
Microsoft OneNote FAQ:
http://home.hawaii.rr.com/schorr/computers/onenotefaq.htm
 
I

Irina Yatsenko (MS)

You've probably heard about XML import OneNote SP1 supports. The feature
requires the author to compose an XML file OneNote would understand, then
it's possible to import the XML into OneNote to create a new section/page or
modify content on the page created through import before (it's not possible
to modify a page created manually). Given that Word supports multiple
programmatic ways of getting content out of it... Well somebody has to write
the connection code. I'm not aware of any existing power toys for this.
 
A

Al Borges MD

Hi guys:

Thanks for the comeback. I thought that somebody had worked with the SP1
already, using XML to transfer stuff from Word to OneNote.

The Excel programmers are way ahead of the Word programmers from what I can
see... the other day I did come across a MS Excel website that did publish
the XML code link, (http://www.mrexcel.com/tip078.shtml), but the problem
they had is the GUID. Here's an except from their website:

----------------------------------------------------
"The Gotcha
In order to update an existing page, you must know the Globally Unique
Identifier (GUID) for that page. There does not appear to be a way to find
the GUID for an existing page in OneNote. This means that you can only
update or delete items on an existing page if you programmatically created
the page and have stored the GUID used to create that page in your workbook.
The example below uses an out-of-the way place on the worksheet to save the
GUID for the page, the data table and the chart.

GUIDs
Every new page in OneNote needs a GUID. Every new object placed on a page
needs a GUID. While it is easy to generate GUIDs from VB.Net, finding a way
to generate GUID's from VBA has been elusive. All 200 million Office VBA
users need to give a tip of the cap to Michael Kaplan of Trigeminal
Software. Michael seems to be the only guy in the world to break the code on
how to generate a GUID from VBA. He has graciously shared this code with the
world. Check out the complete code at his website. With Michael's
permission, I've copied just the functions needed to generate a new GUID in
VBA here. Insert a module in your project and include the following code in
that module.
------------------------------------------------------

You see, the code is almost perfect- the only problem is in getting the GUID
of the last page of, say, a patient chart so as to pile on data (scans,
text, other graphics) to that particular point in the patient's chart
instead of the tedious task of cutting/pasting. I just ordered MS Office
2003, so I guess I have to work on it. When I get it solved, I'll post here
or simply repost an update. If anyone else beats me to it- please do the
same!!! This would be a really neat, powerful, item to have.

Regards,
Al
 

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