hi,
If possible, is there any sample code to achieve this?
hi,
If possible, is there any sample code to achieve this?
Hi Hadi,
builder.MoveToDocumentEnd();
Shape line = new Shape(builder.Document, ShapeType.Line);
line.Width = 3 * 72;
line.StrokeColor = Color.Red;
builder.InsertNode(line);
builder.Document.Save(@"C:\Temp\out.docx");
Hi Awais,
Thanks very much for your assistance. Your code snippet really helps me.
I am wondering about the "Shape" object. There are two properties which are "top" and "left". But what are the default point of references where Aspose will calculate those values ?
For your information, my document is in landscape mode.
Another question, is the "Shape" object staying on the top of the Aspose document itself ? Because i will need to draw those shapes outside the document margin.
Regards,
hadi teo
Hi Hadi,
builder.Writeln("some text");
builder.MoveToDocumentEnd();
Shape shape = builder.InsertImage(@"C:\Temp\Aspose.Words.png");
shape.Width= 300;
shape.Height = 300;
shape.Top = 100;
shape.Left = 100;
shape.WrapType = WrapType.None;
shape.BehindText = true;
builder.Document.Save(@"C:\Temp\out.docx");
The issues you have found earlier (filed as WORDSNET-2978) have been fixed in this .NET update and this Java update.