# Then you need to use the DocumentBuilder.InsertImage(Image,
RelativeHorizontalPosition, # Double, RelativeVerticalPosition, Double,
Double,
Double, WrapType, WrapSide, Boolean, PictureFormat) overload method. Set WrapType
and WrapSide to control image alignment and text wrapping.
I am trying to convert:
Builder.InsertImage("myimage.jpg", (a)RelativeHorizontalPosition.Margin, 100, (b)RelativeVerticalPosition.Margin, 100, 200, 100, (c)WrapType.Square, (d)WrapSide.Both, False, Nothing)
To the Classic ASP overloads method:
Builder.InsertImage_2 "myimage.jpg", (a)0, 100, (b)0, 100, 200, 100, (c)2, (d)0, False, Nothing
I replaced the text with actual enumeration values
(a) RelativeHorizontalPosition_Margin = 0I'm getting an error saying that InsertImage_2 is not being used properly. Is my code totally wrong?
(b) RelativeVerticalPosition_Margin = 0
(c) WrapType.Square = 2
(d) WrapSide.Both = 0