Free Support Forum - aspose.com

Problems with borders properties

Hi,

I have problems when I want to put cells in a table and set white the border color.
I’m trying it modifying border properties like LineWidth = 0, getCellFormat().getBorders().setColor(Color.WHITE)… and I’m not obtain a good result.
I think that perhaps there are some properties which lock the border format and don’t allow this effect, but I don’t know…
The table is in a HeaderFooter element and, could affect it?
I put an example of my code:


Cell celda = builder.insertCell();
// Set first cell to 1/3 of the page width.
celda.getCellFormat().setWidth(tableWidth * 2 / 5);
celda.getCellFormat().getBorders().getBottom().setColor(Color.WHITE);
celda.getCellFormat().getBorders().setLineStyle(LineStyle.NONE);
celda.getCellFormat().getBorders().setLineWidth(0);

Run runPaginas = new Run(document);
runPaginas.getFont().setName(“Arial”);
runPaginas.getFont().setSize(10);
runPaginas.getFont().setBold(false);


Paragraph parPaginas = builder.insertParagraph();
parPaginas.getRuns().add(runPaginas);
parPaginas.getParagraphFormat().setAlignment(ParagraphAlignment.RIGHT);
builder.moveTo(parPaginas.getRuns().get(0));
builder.write("Página “);
builder.insertField(“PAGE”, “”);
builder.write(” de ");
builder.insertField(“NUMPAGES”, “”);
builder.getRowFormat().getBorders().setLineStyle(LineStyle.NONE);
builder.getRowFormat().setHeight(8);
builder.endRow();
builder.endTable();


Thanks for your time and attentions.
Best regards

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your inquiry. Could you please also attach your input and output documents and expected output? I will investigate the issue and provide you more information.

Best regards,