kirils
kirils

Reputation: 1

jqGrid print/export

I use only js (php backend) to create jqGrid. I want to add print/export to excel with js, not to include all the php classes for jqGrid (jqGrid.php) and duplicate code. Is it possible and how?

Upvotes: 0

Views: 5624

Answers (1)

Oleg
Oleg

Reputation: 222007

There are no perfect way to print a jqGrid. Some information which can help you you can find in Print webpages problems :: looking for good tutorial to print web pages (build by Jquery ui, jqgrid , zend).

The best results with exporting the information in Excel you can reach with respect of Open XML SDK 2.0 used on the server (see more links under how to export asp.net MVC detail view data to an excel file? and Strategy in exporting to Excel with formatting from ASP.NET?). I am not sure, that you can do this in your environment.

You can try also to use excelExport method of jqGrid implemented in grid.import.js.

Upvotes: 1

Related Questions