Reputation: 95
I am currently trying to insert pictures into a word document using access, I currently have a form with a button that uses a folder browser to search for pictures...these pictures are stored in a table!.
I can then select those pictures and insert them into a document, this all goes well, the problem is...I need to then group them (maximum 4 pictures in one group) after days of searching I cannot find any solutions to my problem.
It seems that I must first discover the position of the pictures and then I can go further, the problem there is...that there can be many pictures in total in the document so they do not have a fixed point and there is text between and after the pictures.
How do I solve this?
Upvotes: 0
Views: 149
Reputation: 25673
The most reliable and controlable approach is to place the pictures in table cells. In your case, probably a 2x2 table. Insert the table first (Tables.Add method) then get the target Cell.Range and use the Range.InlineShapes.AddPicture method to insert the picture.
Note that you should be able to control the width (or height) of the picture by setting the column (row) to an EXACT size. The other dimension should adjust automatically to retain the proportions.
Upvotes: 1