EMBEBED PICTURE IN MICROSOFT WORD

56 views
Skip to first unread message

hherrera

unread,
Jul 4, 2024, 12:02:09 PM (4 days ago) Jul 4
to Harbour Users

Hi  colleagues,

As the text says, I am trying to embed an image in Word, but I want it to have different sizes. Additionally, I don't know how to make it position in a specific place on the page.

Basically, I want to place several images aligned, for example, in a grid of 6x6 cells, 2x2 cells, 4x4 cells, etc.

my code Example is:

oWord := win_oleCreateObject( "Word.Application" )
oWord:Visible := .F.
oPar := oActive:Paragraphs:Add()
oActive:Shapes:AddPicture(aImage[1],.f.,.t.,,, PixelToPointX(aImage[2]),PixelToPointY(aImage[3])) 

Thanks 
Henry Herrera

Reply all
Reply to author
Forward
0 new messages