Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MS One Note 2010 support from QTP 11.0
#3
Solved: 10 Years, 9 Months ago
I don't have onenote installed on my machine so was not able to test this code...but thought might provide you with a ray of hope.

Code:
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[/b][/b][/b][/b][/i]
       Dim xml2importBase 'As String
       xml2importBase = "<?xml version=""1.0""?><one:Section xmlns:one=""http://schemas.microsoft.com/office/onenote/2007/onenote"" ID="""
       xml2importBase = xml2importBase + unfiledID + """>"
       xml2importBase = xml2importBase + "<one:Page ID=""" + importedPageID + """>"
       xml2importBase = xml2importBase + "<one:Title><one:OE><one:T><![CDATA[Title Comes here-2]]></one:T></one:OE></one:Title>"
       Dim tailXml
       tailXml = "</one:Page></one:Section>"
       Dim xml2import
       xml2import = xml2importBase + tailXml
       oNote.UpdateHierarchy xml2import
       oNote.NavigateTo importedPageID, "", False

The line "set oNote = CreateObject("OneNote.Application")" tells use that OneNote does have an Object model but you have to explore more on the methods and properties which it provides.

Do let me know if that helped
Reply


Messages In This Thread
RE: MS One Note 2010 support from QTP 11.0 - by deepaksporty - 05-20-2011, 12:56 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  QTP support for extjs applications adityasrinivasb 0 3,324 08-20-2013, 11:08 PM
Last Post: adityasrinivasb
  Does QTP support Adobe CQ and Microstrategy kamalteja 0 2,710 03-29-2013, 03:42 AM
Last Post: kamalteja
  QTP does not seem to support xhtml based java objects siva.kanukollu@yaho.com 0 2,678 01-16-2013, 05:03 PM
Last Post: siva.kanukollu@yaho.com
  Does QTP support Teleric and Dev-Xpress 3rd party tools, if yes how? Dharnish 0 2,241 09-19-2012, 04:32 PM
Last Post: Dharnish
  QTP 11 support for firefox qtplearner88 3 4,935 07-19-2012, 07:43 AM
Last Post: vIns

Forum Jump:


Users browsing this thread: 1 Guest(s)