Export grid to pdf

QuestionsExport grid to pdf
Davor Budimir asked 11 years ago

Hello Abu,

I do export grid to pdf and I have two questions:

1. I have a link field that appears but it is not connected to a database.

$col = array();
$col["title"] = "";
$col["name"] = "act";
$col["width"] = "60";
$col["align"] = "center";
$col["search"] = false;
$col["default"] = "Details";
$col["link"] = "case.php?id={ID}";
$col["export"] = false;
$cols[] = $col;

Although the value of field is "$col["export"]=false" it still shown in the pdf file. How to solve?

2. I want to export data to a new pdf page (tab). How?

Best regards,
Davor

8 Answers
Abu Ghufran answered 11 years ago

Hello Davor,

I am emailing you fix for export.
For new link column, please try use another column name instead of act (it's predefined)

Regards,

Davor Budimir answered 11 years ago

Hello Abu,

Unfortunately column still appears.

Code:

$col = array();
$col["title"] = "";
$col["name"] = "detalj";
$col["width"] = "60";
$col["align"] = "center";
$col["search"] = false;
$col["default"] = "Detalji";
$col["link"] = "case.php?id={ID}";
$col["export"] = false;
$cols[] = $col;

Regards,
Davor

Abu Ghufran answered 11 years ago

I've regenerated the case and will be updating you after a fix.

Abu Ghufran answered 11 years ago

Hello,

I've emailed you a lib update.

Regards,

Felipe answered 11 years ago

Hello Abu,

Unfortunately when I use $ col ["export"] = false; to omit a column in the report in pdf, my page is blank generating error.

Another thing, I open this relatorio in another tab in the browser?

Regards,
Felipe Chaves

Abu Ghufran answered 11 years ago

I've sent you updated build. Please recheck after updation.

Felipe answered 11 years ago

Abu

Even after the update had the same behavior. When I click the export button the screen goes blank and nothing happens.

Regards,
Felipe Chaves

Abu Ghufran answered 11 years ago

Please check the apache error log OR turn on the debugging errors to see what actually is causing blank output.

Goto jqgrid_dist.php make it 'on'

ini_set("display_errors","on"); // changed from off to on

Your Answer

19 + 14 =

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?