Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Assigning SystemUtil.Run object to a variable
#1
Not Solved
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  swfwindow object name getting changed after each run saniya 1 1,484 10-10-2018, 09:02 PM
Last Post: TheGlovner
  SystemUtil.Run is not getting recorded divyan 1 1,664 08-31-2017, 09:06 PM
Last Post: Ankur
  SystemUtil.Run method is not getting recorded pupuns2 5 7,779 05-12-2017, 01:20 PM
Last Post: Angeliks
  QTP not recogonising object during run time Lavanya N 2 3,536 10-28-2015, 12:46 PM
Last Post: vinod123
  General run error. Line (18): "Loop while Browser("Index:=0").Object.Busy" AshokReddy 3 4,791 12-20-2013, 01:44 PM
Last Post: sshukla12

Forum Jump:


Users browsing this thread: 1 Guest(s)