Micro Focus QTP (UFT) Forums

Full Version: Inserting Images in the Word file.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi Guys...

I want to insert images in the word file one after the other at the run time or after the results generated.

Main aim is to insert the images in the word file one after the other.....

Smile
Hi,

Refer to the below link it might help u,


Regards,
Sankalp
Hi,

Check this code

Code:
Set objWord=Createobject("Word.Application")
objWord.visible=true
Set objDoc=objWord.documents.add()
Set objShape=objDoc.inlineShapes
For i=1 to 3
objShape.addpicture("c:\"&i&".jpg")
objWord.Selection.Typeparagraph()
Next