How do I insert pictures in picture content controls in Word during runtime from PB (if I have 5 predefined picture content controls already saved in a Word template?
It works with the following code for pictures created dynamically from PB script:
lOLE.ActiveDocument.Shapes.AddPicture( ls_pic )lOLE.ActiveDocument.Shapes[1].Select( )
lOLE.ActiveDocument.Shapes[1].Height = 72
lOLE.ActiveDocument.Shapes[1].Visible= FALSE
I have another requirement where...
It does not work. The only thing I can do is to AddPicture but I am unable to refer to the individual pictures. Is it possible to add pictures in the Word document itself and then refer to them from PB script which could be simpler? Help!!!
Thanks again. I know what pictures I need to populate in advance which is not a problem. I also know what documents should be opened as well. My requirement is to place 4 pictures in Word and during runtime I will decide which of those should be made visible. What type of object should be placed...
Thanks for the reply. It works but....it places the picture at the top of the document. Infact what I would like to have is to have a couple of pictures at the end of the document and I would like to assign the path during run time based on some conditions ans also make it visible/invisible...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.