QTP 11 -> Word Tables
I have QTP 11 sending output to Word Documents.
I see that Tarun's first Unplugged book has an example of how to create and write to a Table.
I'd like to put screen shots into the table. They would look crunched up until they are clicked on. Then I would like them to open up in a separate window or just get larger so the detail can be examined.
Could someone assist me with this VBA/QTP code?
I just found out that Word has a Macro Recorder like Excel. I did not know this existed. I will record creating the table, adding text and then images to cells. Perhaps I can get some clues.
kevin there is a lot of Word com stuff on the MSDN 'Hey Scripting Guy' pages
Browse by Tags - Hey, Scripting Guy! Blog - Site Home - TechNet Blogs
I have found Hey,Scripting Guy! to be very useful in the past. I tried looking searching on the blog for images in cells of a table. No luck.
I may spend more time. I was also looking to see if there was a way to post a question on the site, but did not readily see a way to do this.
Tarun's examle of creating a table and filling it with text worked well. i wish that he gave some more examples of things such as changing colors of cells programmatically. The next example in his book shows how to put an image into the word document using VBA from QTP. Maybe it will have some clues on how to get the image into a cell.
I'm guessing that the cells are objects, and maybe putting the image into the cell will work. Maybe VBA will recognize that it is an image or a blob and play nicely.