Word merging doesn't appear to work with floating texboxes

I tried putting merge fields inside of floating textboxes in Word so that I can exactly position where they need to go.

But, an exception is thrown:

Exception of type ‘System.Web.HttpUnhandledException’ was thrown. —> RedStapler.StandardLibrary.MailMerging.MailMergingException:
Mail merge region ‘Main’ is badly formed. TableStart and TableEnd
should be in the same section, same table row or same table cell.

And it’s because we have to do this:

builder.InsertField( “MERGEFIELD TableStart:Main” );
builder.MoveToDocumentEnd();
builder.InsertField( “MERGEFIELD TableEnd:Main” );

In order to Aspose to merge the document. Apparently floating textboxes are taken out of normal flow.

You might not need to use floating text boxes. Try this from within Word 2013:

  1. Right-click the image.
  2. Select Wrap Text, Behind Text.
  3. Find the insertion point, which may be in the upper-left corner of the image.
  4. Type on top of the image. You can use shift-enter to add line breaks above your text without moving the image.

Yeah, I’m aware of that method. The problem is that the text is difficult to match-up with the image exactly.

Also, I found some excellent example code for adding an image to a PDF with Aspose that worked perfectly, so now I no-longer need Word.