I've been searching the forum, but can't find an answer to this maybe someone can point me in the right direction.
All I want todo is have an image to the left of a paragraph of text (see the attachment - top is what I want and bottom is what I am getting)
I have a bunch of text before and after this, but on this one paragraph I would like to have an image. The boiled down code I'm using is:
Code:
paragraph = section.AddParagraph();
string ImageArea = @"F:\pdfTest\";
Image image = paragraph.AddImage(ImageArea + "test.png");
image.Height = "2.5cm";
image.LockAspectRatio = true;
image.RelativeVertical = RelativeVertical.Paragraph;
image.RelativeHorizontal = RelativeHorizontal.Margin;
image.Top = ShapePosition.Top;
image.Left = 0;
image.WrapFormat.Style = WrapStyle.None;
paragraph.AddText("This is some text to the left of the image it also wraps at the bottom if it goes to long… This is some text to the left of the image it also wraps at the bottom if it goes to long… This is some text to the left of the image it also wraps at the bottom if it goes to long… This is some text to the left of the image it also wraps at the bottom if it goes to long… This is some text to the left of the image it also wraps at the bottom if it goes to long…");
paragraph = section.AddParagraph();
...
I've tried various changes to RelativeVertical,RelativeHorizontal, image.top and left but nothing makes a difference.
Any ideas would be great.