Hi there,
I need to add a Shape.Line and some text beneath it to a table cell in footer.
Any idea how I might achieve this?
I am using the builder to build the table.
My test code so far is:builder.startTable();
Cell cell = builder.insertCell();
builder.getParagraphFormat().setAlignment(ParagraphAlignment.CENTER);
builder.getCellFormat().getBorders().clearFormatting();
builder.getCellFormat().setTopPadding(50);
builder.getCellFormat().setVerticalAlignment(ParagraphAlignment.CENTER);
Shape shape = new Shape(doc, ShapeType.LINE);
shape.setWidth(200);
shape.setTop(35);
shape.setHorizontalAlignment(HorizontalAlignment.CENTER);
shape.setVerticalAlignment(VerticalAlignment.CENTER);
com.aspose.words.Paragraph para = cell.getFirstParagraph();
para.appendChild(shape);
builder.writeln(“SOME TEXT”);
builder.write(“OTHER TEXT”);
…
I also tried to do it as it’s described in this
Sadly it didn’t work.
Any help is appreciated!
Hi Lucian,