Row height exporting grid

QuestionsRow height exporting grid
Alberto asked 6 years ago

Hi, Abu

I've a column like this:

$col = array();
$col["title"] = "DESCRIPCION";
$col["name"] = "t_descripcion";
$col["width"] = "200";
$col["editable"] = true;
$col["edittype"] = "textarea";
$col["editoptions"] = array("rows"=>2, "cols"=>100);
$cols[] = $col;

If in a row, this column have any data, when I export grid to PDF file that is higher than the others:


1 Answers
Alberto answered 6 years ago

The row height changes when I resize columns width in "on_render_pdf" event.

$e["on_render_pdf"] = array("set_pdf_format", null);

function set_pdf_format($arr)
$pdf = $arr["pdf"];
$data = $arr["data"];
$pdf->SetFont('courier', '', 8);
$amples = array(19,12,12,20,28,160,20,12,12,12);
$alineament = array('L','L','L','L','L','L','L','R','R','L','R','R','R');

Your Answer

14 + 3 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.

How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?