DISQUS

DISQUS Hello!  The comments on this profile are unclaimed and thus are unverified.

Do they belong to you? Claim these comments.

Alok's picture

Unregistered

Feeds

aliases

  • Alok

Alok

1 year ago

in OneNote Text Importer on OneNote PowerToys
Hi,

Is there any way to open One Note 2007 application using VB script/Java script?

I tried this VB script ...this failes because VB script is not supporting OUT parameter

dim oneNote,pageStyle,importedPageID,unfiledPath,unfiledID

set oNote = CreateObject("OneNote.Application")

oNote.GetSpecialLocation 1,unfiledPath

oNote.OpenHierarchy unfiledPath, "", unfiledID, 0

oNote.CreateNewPage unfiledID,importedPageID, 0

Dim xml2importBase 'As String

xml2importBase = ""

xml2importBase = xml2importBase ""

xml2importBase = xml2importBase ""

Dim tailXml

tailXml = ""

Dim xml2import

xml2import = xml2importBase tailXml

oNote.UpdateHierarchy xml2import

oNote.NavigateTo importedPageID, "", False

I know we cant send out parameter in the VB script.

So Is there any way to overcome this problem and make this script run?

Or can I import XML to the OneNote2007 application without SectionID and PageID?
Returning? Login