a) Trying to insert images manually into a document using the following code
Dim doc As New Aspose.Word.Document(Me.txtTemplate.Text)
Dim builder As Aspose.Word.DocumentBuilder = New DocumentBuilder(doc)
builder.InsertImage(“testimage.jpg”, RelativeHorizontalPosition.Margin, 114, RelativeVerticalPosition.Margin, 283, 200, 200, WrapType.None, WrapSide.Left, True, Nothing)
However, this image is to be used like a watermark, and as such should appear BEHIND the text. I read the doco and assumed that the “IsBelowText” parameter (2nd last) would render the image behind the text. However, the value of IsBelowText (T/F) doesn’t seem to do anything.
In the output document - a right click on the image and select ORDER -> Send Behind Text gives the desired result.
b) Could you please provide a code sample for repeating the image insertion on EVERY page? Looping by sections doesn’t work as there can be multiple sections on a single page.