Can we invoke MS Word using Winrunner and write something in to it? If yes, how can we invoke MS Word? I know we can manipulate data in Excel using Winrunner, but would like to know whether we can invoke MS Word using Winrunner.
Help will tell you more.
If you want to just create a word document, then you can create a file with extension .doc using the file open command with mode as write.
Then write to it using file commands. I am doing this to generate log files with formatting.
before execute the below statements ,Add Msword window objects to gui map
Path = getvar("curr_dir");
invoke_application(Path & "Test.doc","","",SW_SHOW);
set_window ("Microsoft Word", 2);
obj_type ("Microsoft Word Document","Helo How are you");
Thanks & Regards