I’m making a document where I need to put some text and a picture in the header part of the document on one page. I’m able to do that by making a textbox, and setting position like so:
Shape tableBox = new Shape(myDocument, ShapeType.TextBox);
tableBox.RelativeHorizontalPosition = RelativeHorizontalPosition.Page;
tableBox.RelativeVerticalPosition = RelativeVerticalPosition.Page;
tableBox.HorizontalAlignment = HorizontalAlignment.Left;
tableBox.VerticalAlignment = VerticalAlignment.Top;
My problem is that when I insert it with
myDocumentBuilder.InsertNode(tableBox);
it leaves an empty paragraph. I’d like it to not leave a trace in the structure of the document. So that my next element can begin exactly where I was when I inserted the tableBox. Anyone got any advice for me?