Inserting Tag items

S

Scott

I'm auto-generating some content via the API and inside of a Table/Cell I'm
writing data like this:

foreach (KeyValuePair<string, string> name in recipients) {
attendees.Append("<one:OE alignment=\"left\">");
//attendees.Append("<one:Tag />");
attendees.AppendFormat("<one:T><![CDATA[{0}]]></one:T>",
name.Key);
attendees.Append("</one:OE>");
}

Works perfectly as long as I leave that one:Tag line commented out. If I
uncomment that so that the person's name has a checkbox next to it, I get an
error from UpdateHierarchy...which for some reason seems to let me actually
give the new hierarchy with a new page inside of it as well.
 
R

Rainald Taesler

Scott shared these words of wisdom:
I'm auto-generating some content via the API and inside of a
Table/Cell I'm writing data like this:

Intersting!
Does that mean that you are programming something for ON 2007?

Rainald
 
R

Rainald Taesler

Scott shared these words of wisdom:
Quite a few things, yes :) Unfortunately there is a bug in the way
that addins are loaded with OneNote so they don't always work. You
get the button on OneNote's toolbar and press it, but nothing
happens, and it stays grey. No way to debug it either :(

Connection remotely though works without a hitch. Just instantiate
an ApplicationClass object and away you go (Add a reference to
OneNote from the COM tab, not the .NET tab like many articles say)

msdn.microsoft.com/onenote has two articles on the API

Thanks, Scott.
Unfortunately have been awy from programming for too long, so I won't
be able to create my own stuff for ON :-( :-(

Rainald
 

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