TextBox: How to add image?

  • In my document I have a left page margin of 6cm so that I have quite some space to add custom things on the left side. I want to use this space to add text boxes and position them to fixed positions.

    This works well as long as I have simple text in the boxes. But I also want to add an image to the box and that fails. I used TWPORTFTextBox.AddSubImage for that purpose but I can't see the image. Here is my code:

    Can you please correct my code or tell me another approach to add an image to a text box?

    Many thanks in advance,
    Dirk.