I guys can someone help me on this.
1.Why this code still given me this error ?
Run error 438 (object doesn't support this property or method)
2.I have also problems in LoadPicture uses Twips and SavePicture
uses Pixels, how can i load pic also in Pixels ?
Dim pic As Picture
Dim picWidth, picHeight As Long
'get pic width and height
Set pic = LoadPicture(filePath & "\" & Filename)
picWidth = pic.Width
picHeight = pic.Height
'make pic new width and height
If picWidth > picHeight Then
pic.Width = 100 <------------ error here
pic.Height = 100 * (picHeight / picWidth)
End If
'save mirror pic
SavePicture pic, App.Path & "\Temp\" & Filename
Thanks
Fernando
1.Why this code still given me this error ?
Run error 438 (object doesn't support this property or method)
2.I have also problems in LoadPicture uses Twips and SavePicture
uses Pixels, how can i load pic also in Pixels ?
Dim pic As Picture
Dim picWidth, picHeight As Long
'get pic width and height
Set pic = LoadPicture(filePath & "\" & Filename)
picWidth = pic.Width
picHeight = pic.Height
'make pic new width and height
If picWidth > picHeight Then
pic.Width = 100 <------------ error here
pic.Height = 100 * (picHeight / picWidth)
End If
'save mirror pic
SavePicture pic, App.Path & "\Temp\" & Filename
Thanks
Fernando