0

We have inserted the page numbers and footer text in the Footer using table but we want to hide the cell border for the table.

enter link description here

1 Answers1

1

You should simply set line style of the cell borders to none:

builder.getCellFormat().getBorders().setLineStyle(LineStyle.NONE);

In this case borders will not be visible.

Alexey Noskov
  • 1,722
  • 1
  • 7
  • 13
  • code works thank you Alexey, Noskov. can help me how to align text to some extent to right side of the cell ?. Right now text inside aligned to completely left side – suresh sadanala Aug 19 '22 at 04:49
  • 1
    just specify paragraph alignment in the appropriate cell. You can do this using builder.getParagraphFormat().setAlignment() method. https://reference.aspose.com/words/java/com.aspose.words/paragraphformat#Alignment – Alexey Noskov Aug 19 '22 at 04:56
  • yes we use setAlignment() to align Left, Right or Center but to align to some points away from cell, I used padding methods like setLeftPadding(), setRightPadding() – suresh sadanala Aug 22 '22 at 13:32