Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MS One Note 2010 support from QTP 11.0
#28
Solved: 10 Years, 9 Months ago
Hello.

Thank you. I used your values and ran the utility in Debug mode. I noticed that .NET DateTime structure couldn't parse the date and time in the format that QTP supplies to the utility in your system.

Earlier, I had believed that QTP also will use the same date time format as your system date and time but it appears that they are not the same. The funny thing is that here on my system QTP utilizes the same date/time format as my system and .NET, hence I never saw this issue.

I think the safest bet is to utilize DotnetFactory here. Can you replace Line 13 where we're assigning CStr(Now) to the variable: lastPrintedTime with two lines that I pasted below?

Set dotNetDateTime = DotnetFactory.CreateInstance("System.DateTime")
lastPrintedTime = dotNetDateTime.Now


Also capture the value as it goes this time.

If you see the value is still being passed the same way as before, then consider using the following lines instead:

completeDate = year(Date) & "-" & month(Date) & "-" & day(Date)

lastPrintedTime = completeDate & " " & Time


What still perplexes me though is the fact that on 15th July, the utility exported almost all the pages in your notebook beginning from 19th May! Now, I couldn't link 19th May 2011 and 15th July 2011 at all. Have you got any idea about this? According to the code, it shouldn't have exported a single page because .NET couldn't parse the date at all.

And another puzzle is the generation of log file. Can you check if the file OneNote2PDF.exe.config which exists in the same location as the utility itself has the following key/value pairs?

1. <add name="DataMessagesSwitch" value="1" />
2. <add name="TraceLevelSwitch" value="4" />

When you ran the script this time, did you allow the utility to run to finish? Or, you just put the breakpoint on Line 25, captured the values of variables and stopped the script? Remember the log will only be available if the utility was really invoked and allowed to run for some time.

Please also make sure that the folder where you've placed the utility and the config file isn't read-only and that you have write permission on the folder.

I'd wait for your observations.

Thanks,
Light.
Reply


Messages In This Thread
RE: MS One Note 2010 support from QTP 11.0 - by Light - 07-20-2011, 03:07 AM

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,679 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,243 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: 2 Guest(s)