Group:  Other Microsoft Office Products » microsoft.public.onenote
Thread: Adding MS Ink using COM API, plz help

Geek News

Adding MS Ink using COM API, plz help
David 12/13/2008 12:12:01 PM
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

RE: Adding MS Ink using COM API, plz help
John Guin [msft] 12/13/2008 9:03:01 PM
Hello David,

Generally speaking, you should not need to add an ObjectID in your code - ON
will assign one when the object is created. If you really need to track an
ID associated with your content, you can add a tag in the metadata.

As far as creating a section goes, see my text importer addin - it creates
sections when you import text files from a folder:
http://blogs.msdn.com/johnguin/archive/2007/04/30/customer-feedback-results-in-another-powertoy.aspx

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


"David" wrote:

[Quoted Text]
> 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
>
RE: Adding MS Ink using COM API, plz help
David 12/14/2008 4:12:01 PM
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.


"John Guin [msft]" wrote:

[Quoted Text]
> Hello David,
>
> Generally speaking, you should not need to add an ObjectID in your code - ON
> will assign one when the object is created. If you really need to track an
> ID associated with your content, you can add a tag in the metadata.
>
> As far as creating a section goes, see my text importer addin - it creates
> sections when you import text files from a folder:
> http://blogs.msdn.com/johnguin/archive/2007/04/30/customer-feedback-results-in-another-powertoy.aspx
>
> --
> Hope some of this helps,
> John Guin
> OneNote Test Team
> http://blogs.msdn.com/johnguin
>
>
> "David" wrote:
>
> > 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
> >
RE: Adding MS Ink using COM API, plz help
John Guin [msft] 12/14/2008 10:05:01 PM
Hi David,

Have you downloaded the API documentation for Office 2007 yet? It's at
http://www.microsoft.com/downloads/details.aspx?FamilyId=15805380-F2C0-4B80-9AD1-2CB0C300AEF9&displaylang=en if you haven't found it.

I hadn't looked through it for awhile myself and had to redicover the reason
I should have read it before starting on a recent powertoy:
http://blogs.msdn.com/johnguin/archive/2008/12/01/reading-the-onenote-schema-documentation-helps-prevent-bugs.aspx

--
Thanks,
John Guin
OneNote Test Team
http://blogs.msdn.com/johnguin


"David" wrote:

[Quoted Text]
> 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.
>
>
> "John Guin [msft]" wrote:
>
> > Hello David,
> >
> > Generally speaking, you should not need to add an ObjectID in your code - ON
> > will assign one when the object is created. If you really need to track an
> > ID associated with your content, you can add a tag in the metadata.
> >
> > As far as creating a section goes, see my text importer addin - it creates
> > sections when you import text files from a folder:
> > http://blogs.msdn.com/johnguin/archive/2007/04/30/customer-feedback-results-in-another-powertoy.aspx
> >
> > --
> > Hope some of this helps,
> > John Guin
> > OneNote Test Team
> > http://blogs.msdn.com/johnguin
> >
> >
> > "David" wrote:
> >
> > > 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
> > >
RE: Adding MS Ink using COM API, plz help
David 12/15/2008 4:26:00 PM
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

"John Guin [msft]" wrote:

[Quoted Text]
> Hi David,
>
> Have you downloaded the API documentation for Office 2007 yet? It's at
> http://www.microsoft.com/downloads/details.aspx?FamilyId=15805380-F2C0-4B80-9AD1-2CB0C300AEF9&displaylang=en if you haven't found it.
>
> I hadn't looked through it for awhile myself and had to redicover the reason
> I should have read it before starting on a recent powertoy:
> http://blogs.msdn.com/johnguin/archive/2008/12/01/reading-the-onenote-schema-documentation-helps-prevent-bugs.aspx
>
> --
> Thanks,
> John Guin
> OneNote Test Team
> http://blogs.msdn.com/johnguin
>
>
> "David" wrote:
>
> > 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.
> >
> >
> > "John Guin [msft]" wrote:
> >
> > > Hello David,
> > >
> > > Generally speaking, you should not need to add an ObjectID in your code - ON
> > > will assign one when the object is created. If you really need to track an
> > > ID associated with your content, you can add a tag in the metadata.
> > >
> > > As far as creating a section goes, see my text importer addin - it creates
> > > sections when you import text files from a folder:
> > > http://blogs.msdn.com/johnguin/archive/2007/04/30/customer-feedback-results-in-another-powertoy.aspx
> > >
> > > --
> > > Hope some of this helps,
> > > John Guin
> > > OneNote Test Team
> > > http://blogs.msdn.com/johnguin
> > >
> > >
> > > "David" wrote:
> > >
> > > > 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
> > > >
RE: Adding MS Ink using COM API, plz help
John Guin [msft] 12/16/2008 10:42:05 PM
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


"David" wrote:

[Quoted Text]
> 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
>
> "John Guin [msft]" wrote:
>
> > Hi David,
> >
> > Have you downloaded the API documentation for Office 2007 yet? It's at
> > http://www.microsoft.com/downloads/details.aspx?FamilyId=15805380-F2C0-4B80-9AD1-2CB0C300AEF9&displaylang=en if you haven't found it.
> >
> > I hadn't looked through it for awhile myself and had to redicover the reason
> > I should have read it before starting on a recent powertoy:
> > http://blogs.msdn.com/johnguin/archive/2008/12/01/reading-the-onenote-schema-documentation-helps-prevent-bugs.aspx
> >
> > --
> > Thanks,
> > John Guin
> > OneNote Test Team
> > http://blogs.msdn.com/johnguin
> >
> >
> > "David" wrote:
> >
> > > 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.
> > >
> > >
> > > "John Guin [msft]" wrote:
> > >
> > > > Hello David,
> > > >
> > > > Generally speaking, you should not need to add an ObjectID in your code - ON
> > > > will assign one when the object is created. If you really need to track an
> > > > ID associated with your content, you can add a tag in the metadata.
> > > >
> > > > As far as creating a section goes, see my text importer addin - it creates
> > > > sections when you import text files from a folder:
> > > > http://blogs.msdn.com/johnguin/archive/2007/04/30/customer-feedback-results-in-another-powertoy.aspx
> > > >
> > > > --
> > > > Hope some of this helps,
> > > > John Guin
> > > > OneNote Test Team
> > > > http://blogs.msdn.com/johnguin
> > > >
> > > >
> > > > "David" wrote:
> > > >
> > > > > 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
> > > > >
RE: Adding MS Ink using COM API, plz help
David 12/18/2008 5:11:01 PM
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.


"John Guin [msft]" wrote:

[Quoted Text]
> 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
>
>
> "David" wrote:
>
> > 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
> >
> > "John Guin [msft]" wrote:
> >
> > > Hi David,
> > >
> > > Have you downloaded the API documentation for Office 2007 yet? It's at
> > > http://www.microsoft.com/downloads/details.aspx?FamilyId=15805380-F2C0-4B80-9AD1-2CB0C300AEF9&displaylang=en if you haven't found it.
> > >
> > > I hadn't looked through it for awhile myself and had to redicover the reason
> > > I should have read it before starting on a recent powertoy:
> > > http://blogs.msdn.com/johnguin/archive/2008/12/01/reading-the-onenote-schema-documentation-helps-prevent-bugs.aspx
> > >
> > > --
> > > Thanks,
> > > John Guin
> > > OneNote Test Team
> > > http://blogs.msdn.com/johnguin
> > >
> > >
> > > "David" wrote:
> > >
> > > > 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.
> > > >
> > > >
> > > > "John Guin [msft]" wrote:
> > > >
> > > > > Hello David,
> > > > >
> > > > > Generally speaking, you should not need to add an ObjectID in your code - ON
> > > > > will assign one when the object is created. If you really need to track an
> > > > > ID associated with your content, you can add a tag in the metadata.
> > > > >
> > > > > As far as creating a section goes, see my text importer addin - it creates
> > > > > sections when you import text files from a folder:
> > > > > http://blogs.msdn.com/johnguin/archive/2007/04/30/customer-feedback-results-in-another-powertoy.aspx
> > > > >
> > > > > --
> > > > > Hope some of this helps,
> > > > > John Guin
> > > > > OneNote Test Team
> > > > > http://blogs.msdn.com/johnguin
> > > > >
> > > > >
> > > > > "David" wrote:
> > > > >
> > > > > > 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
> > > > > >
RE: Adding MS Ink using COM API, plz help
John Guin [msft] 12/18/2008 5:55:03 PM
Glad to help. Can you send me an email via my blog?

--
Thanks, and glad to hear your addin is working,
John Guin
OneNote Test Team
http://blogs.msdn.com/johnguin

RE: Adding MS Ink using COM API, plz help
David 12/18/2008 5:58:04 PM
Its on the way,
thanks

"John Guin [msft]" wrote:

[Quoted Text]
> Glad to help. Can you send me an email via my blog?
>
> --
> Thanks, and glad to hear your addin is working,
> John Guin
> OneNote Test Team
> http://blogs.msdn.com/johnguin
>
RE: Adding MS Ink using COM API, plz help
Ani 12/20/2008 2:11:00 AM
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 anirudhsaraf[ at ]gmail.com

Thanks,
Ani


"David" wrote:

[Quoted Text]
> Its on the way,
> thanks
>
> "John Guin [msft]" wrote:
>
> > Glad to help. Can you send me an email via my blog?
> >
> > --
> > Thanks, and glad to hear your addin is working,
> > John Guin
> > OneNote Test Team
> > http://blogs.msdn.com/johnguin
> >
RE: Adding MS Ink using COM API, plz help
David 12/23/2008 12:31:01 PM
Hi
can I have your direct contact ?
David

"Ani" wrote:

[Quoted Text]
> 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 anirudhsaraf[ at ]gmail.com
>
> Thanks,
> Ani
>
>
> "David" wrote:
>
> > Its on the way,
> > thanks
> >
> > "John Guin [msft]" wrote:
> >
> > > Glad to help. Can you send me an email via my blog?
> > >
> > > --
> > > Thanks, and glad to hear your addin is working,
> > > John Guin
> > > OneNote Test Team
> > > http://blogs.msdn.com/johnguin
> > >

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net