AlGraf
AlGraf

Reputation: 15

Merge cells for empty values in PDF Form table?

I try to make pdf table like this:

PdfTableExample

I need:

Why when header1 and header2 is null? I cannot see left/right border.

My code is:

Upvotes: 0

Views: 456

Answers (1)

Faizan Farrukh
Faizan Farrukh

Reputation: 11

In your 2nd header make sure the edge 1 and edge 3 borders are set to visible

if ( this.rawValue == null || this.rawValue == "" || this.rawValue == " " )
{
this.border.getElement("edge",0).presence = "invisible";
this.border.getElement("edge",1).presence = "visible";
this.border.getElement("edge",2).presence = "invisible";
this.border.getElement("edge",3).presence = "visible";
}
else
{
this.border.getElement("edge",2).presence = "invisible";
}

Upvotes: 1

Related Questions