Hi all,

I have an ACCESS database with an embedded OLE-field containing a
bitmap-picture.
I already mannaged to copy and paste the picture from the database to a
word-document, but now i still need to resize it...

here is the code i use:

imgFoto.Action = acOLECopy
Set objWord = CreateObject("WORD.APPLICATION")
With objWord
.Documents.Add "D:\bitmap\bitmap.dot"
.Selection.GoTo What:=-1, Name:="bitmap"
.Selection.Paste
'here i should do the resize
.Visible = True
End With

Is this the way it should be done?
Anyone got an idea how to do the resize?

Jan Hendrickx.

Re: resize pasted bitmap-picture by Jezebel

Jezebel
Thu Jun 24 19:12:15 CDT 2004

.Selection.ShapeRange.Height = ...
.Selection.ShapeRange.Width = ...


"Jan Hendrickx" <jan_hendrickx@telenet.be> wrote in message
news:nrJCc.165392$oQ6.8471682@phobos.telenet-ops.be...
> Hi all,
>
> I have an ACCESS database with an embedded OLE-field containing a
> bitmap-picture.
> I already mannaged to copy and paste the picture from the database to a
> word-document, but now i still need to resize it...
>
> here is the code i use:
>
> imgFoto.Action = acOLECopy
> Set objWord = CreateObject("WORD.APPLICATION")
> With objWord
> .Documents.Add "D:\bitmap\bitmap.dot"
> .Selection.GoTo What:=-1, Name:="bitmap"
> .Selection.Paste
> 'here i should do the resize
> .Visible = True
> End With
>
> Is this the way it should be done?
> Anyone got an idea how to do the resize?
>
> Jan Hendrickx.
>
>