three images into a document?

cauzeneffeckt

New member
Joined
Mar 23, 2010
Messages
2
Programming Experience
1-3
Hello ALL! I was needing some help here, i have three images that i want to be imported into a document. PDF? DOC? I just want them to be inline vertically one after another.

What is the best way to go about this???
 
Well if you are familiar with Word automation that is what I know. I would use a table without borders and then something like this:

VB.NET:
 oDoc.Tables(1).Rows(1).Cells(1).Range.InlineShapes.AddPicture("imagePath")
 
thanks for the reply! now which reference does this us? I am using vs2008. Is that all i need to add the image to the cell i request????
 
What Word version will you be working with? 2007 is the Word 12.0 Object Library, but you can reference multiple object libraries if you don't know which Work version will be on the target machine. Are you familiar with automation? There are plenty of tutorials out there. The simplest idea is to make a template with with 1 bookmark - this is where you add the table at runtime, make 3 rows to your table, now like I posted above is how you add the images to a cells range. Word tables/rows/cells are not 0 based they start with 1.
 
Back
Top