Inport API Question - isf

F

Fritz Switzer

Using the code below and the SimpleImporter API, I'd like to use InkContent
with outline.AddContent. Assuming my ink is saved in "test.isf", can anyone
provide the code in order to import ink into a OneNote page.

Page p = new Page("General.one","Import Example");

OutlineObject outline = new OutlineObject();

outline.AddContent(new HtmlContent("this is the first line"));

outline.AddContent(new HtmlContent("Below is a line of ink"));

//outline.AddContent(new InkContent(test..isf));



p.AddObject(outline);



TIA,

Fritz
 
D

Donovan Lange (MSFT)

This should do the trick:

outline.AddContent(new InkContent(new FileInfo(“test.isfâ€)));

....assuming of course that the file test.isf is contained within the working
directory (you might want to try using an absolute path if it gives you
trouble).

Hope this helps,

Donovan
http://blogs.msdn.com/dolange/
 
F

Fritz Switzer

Donovan,

That looks like it should do the trick. I didn't want to go the Base64 route
right now.

Thanks for the quick and responsive reply, greatly appreciated. Uncovering
the Importer API information was very exciting and now being able to import
ink is icing.

Thanks again,

Fritz
 

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