I want to add caption for my Image and for this purpose I create this method:
public static void AddPhotoCaption(
ref Document doc,
ref DocumentBuilder builder,
Shape shape,
string captionTitle,
CaptionPosition position)
{
builder.MoveTo(shape.ParentParagraph);
builder.InsertParagraph();
builder.InsertField(@"SEQ Figure \* ARABIC", "");
builder.Write(captionTitle);
}
but the caption placed behind the image.also I tried :
builder.MoveTo(shape.NextSibling);
but then System.ArgumentNullException' occurred.