Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Assigning SystemUtil.Run object to a variable
02-09-2012, 10:16 PM
Post: #1
Assigning SystemUtil.Run object to a variable

I am running MS Word using:
SystemUtil.Run "C:\Program Files\Microsoft Office\Office12\WINWORD.EXE","","",""

Can this be assigned to a variable Var, so that different actions in Word such as Var.Documents.Add(), Var.Selection.TypeText etc. can be performed? Or could you tell me how i could do these actions after running SystemUtil.Run?

I am not using CreateObject(Word.Application) or GetObject, as they are giving me a different template of Word. Only SystemUtil.Run is giving the correct Word template that i need to use.

I am using QTP10, and MS Word 2007. Any help or suggestions would be greatly appreciated.
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  SystemUtil Block Input method Surya 2 216 03-28-2012 08:40 PM
Last Post: Surya
  SystemUtil.Run method is not getting recorded pupuns2 4 1,704 03-17-2012 12:21 AM
Last Post: chetan3987
  QTP 11 not generating SystemUtil.Run statement softtest12 4 2,673 08-09-2011 04:27 PM
Last Post: Saket
  run error object not visible gagme 0 1,039 04-16-2011 01:48 AM
Last Post: gagme
  Showing Cannot identify the object error while we run the QTP arun_mohan_c 1 1,413 02-14-2011 01:04 PM
Last Post: arun_mohan_c

Forum Jump:


User(s) browsing this thread: 1 Guest(s)