Adding MS Ink using COM API, plz help

D

David

Hi
Im trying to add MS Inks to the ON page.
What is a correctway to perform this? Imtrying UpdatePageContent with
code-created XML string.
Can anybody explain how to create Ink element :

<one:InkDrawing lastModifiedTime="2008-12-10T21:54:42.000Z"
objectID="{C9A723CF-F843-436F-9DC9-502DA4CCDD64}{12}{B0}">
<one:position x="68.25826263427734" y="90.73700714111328" z="1" />
<one:Size width="81.77953338623047" height="73.53070068359375" />
<one:Data>AIkCHQTcAcYBAUBYz1SK5pfFT48G+LrS4Zsiv+xxzMwisUGJDrsTLO56od67E4vlXrNInJuhJVq.....
=</one:Data>
</one:InkDrawing>

How shall I create ObjectID? Any chance for real sample code? ( not "add
blankpage, add title ")

Another question : how can I add a new section to the existing Notebook?

Please help.
David
 
J

John Guin [msft]

D

David

thanks a lot ,
I aslo realized that I dont need to assign ObjectIDs to my inks, ON
generates them upon update.
Can you explain what are the measurment units of inks in ON?
I mean this :
<one:position x="8.532282829284667" y="9.836220741271973" z="0" />
<one:Size width="0.68031495809555" height="0.0283466577529907" />
David.
 
J

John Guin [msft]

D

David

Hi John,
I got schema doc but cannot find definite explanation what are the
measurment units. Check Position and Size types in schema.
Perhaps I should not set Position and Size and ON will infer from the Ink
object?
Im really confused here...
David
 
J

John Guin [msft]

Hello David,

It took me a bit to find this myself, but buried in the XSD (the Schema Map
node in the CHM file for the OneNote API reference) is the note that all
values are in points.


--
Hope this helps,
John Guin
OneNote Test Team
http://blogs.msdn.com/johnguin
 
D

David

Dear John,
Thanks for your help.
I actually succeeded to accomplish all basic tasks in my ON addin and it
works pretty well!
I think I have pretty cool application - basically my addin is used with my
company's' (www.epos-ps.com) HW. We produce digital pen that is able to
capture and record digital ink by means of receiver that acts also as USB
flash disk. This small device works in standalone mode for capturing and
while it is connected to PC it acts as HID digitizer and USB Flash drive.
My addin reads our digital ink file from USB disk and adds Section/Pages to
OneNote, accurately presenting captured inks. ON is an ideal tool for working
with Inks, in addition our HW in HID digitizer mode provides a grate way to
work with OneNote. User has TabletPC- like experience on any regular computer
form Win2000 to Win7.
I apologize for pushing "marketing" here abut I don’t have any relevant
contact in ON product.
My assumption is that MSFT may find our HW as a great tool which expands
usage of OneNote application (and many others as well). Perhaps you can
provide me an appropriate contact in ON team such as product manager and I
will try to find common points of interest both businesswise and
technically-wise.
I'm SW development manger and have created ON addin in my free time (mostly
at nights at home).
Best, David.
 
A

Ani

Hi David,

I just checked out your companies website, and the product ( the digital pen
and USB device) seems like a perfect match to complement my note-taking in
OneNote on a tablet.

From what I gathered the product is not available yet. If you guys have demo
units I would love to try one (and provide feedback / test) . I am a college
student and highly interested in digital note-taking.

You can follow my blog at
http://tabletpcstudent.wordpress.com

or email me at (e-mail address removed)

Thanks,
Ani
 
D

David

Hi
can I have your direct contact ?
David

Ani said:
Hi David,

I just checked out your companies website, and the product ( the digital pen
and USB device) seems like a perfect match to complement my note-taking in
OneNote on a tablet.

From what I gathered the product is not available yet. If you guys have demo
units I would love to try one (and provide feedback / test) . I am a college
student and highly interested in digital note-taking.

You can follow my blog at
http://tabletpcstudent.wordpress.com

or email me at (e-mail address removed)

Thanks,
Ani
 

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

Similar Threads


Top