Dave M.
2003-07-25 15:53:08 UTC
How do you insert a picture into a particular cell in a table?
I have the following code:
InsertPictureIntoRange(PictureFileName, Table.Cell((Loop * 2) + 2, 1).Range);
which calls
procedure TWordAPI.InsertPictureIntoRange(fileName: String; Rnge: OleVariant);
var
picfilename: WideString;
varFalse, varTrue: OleVariant;
begin;
try
varTrue := True;
varFalse := False;
picfilename := filename;
FWordDoc.Application.Selection.InlineShapes.AddPicture(picfilename, varFalse, varTrue, Rnge);
end;
which insert it *behind* the tables.
Is there a way to put it *into* a cell? I'm using W2K and Word 2000.
Best,
Dave
(replace NOSPAM with eims to reply)
I have the following code:
InsertPictureIntoRange(PictureFileName, Table.Cell((Loop * 2) + 2, 1).Range);
which calls
procedure TWordAPI.InsertPictureIntoRange(fileName: String; Rnge: OleVariant);
var
picfilename: WideString;
varFalse, varTrue: OleVariant;
begin;
try
varTrue := True;
varFalse := False;
picfilename := filename;
FWordDoc.Application.Selection.InlineShapes.AddPicture(picfilename, varFalse, varTrue, Rnge);
end;
which insert it *behind* the tables.
Is there a way to put it *into* a cell? I'm using W2K and Word 2000.
Best,
Dave
(replace NOSPAM with eims to reply)