Micro Focus QTP (UFT) Forums
Add picture to Excel From UFT - 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: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Add picture to Excel From UFT (/Thread-Add-picture-to-Excel-From-UFT)



Add picture to Excel From UFT - eiko - 02-10-2018

Hello, is there a way i can insert pictures from uft into an excel document, without needing the picture file?

I tried doing it with  objsheet.Pictures.Insert statement, but this doesn't really work the way i need, since when i delete files, pictures inside excel get corrupt.
I remember doing a vb macro that solved this, useing  objsheet.Shapes.AddPicture instead, but can't make it work from uft.
If there isnt a way to do it from uft, i'll end up doing a macro, but i wish i could avoid it.


Thanks in advance!