Micro Focus QTP (UFT) Forums
Inserting Images in the Word file. - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Inserting Images in the Word file. (/Thread-Inserting-Images-in-the-Word-file)



Inserting Images in the Word file. - atulparate - 04-05-2012

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


RE: Inserting Images in the Word file. - sshukla12 - 04-09-2012

Hi,

Refer to the below link it might help u,


Regards,
Sankalp


RE: Inserting Images in the Word file. - swathi - 04-09-2012

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