Grid to PDF and Excel Online Service

| Comments (4)

This is a quick note on the export to PDF and Excel functionality for dhtmlxGrid. The export functionality is also available as an online service so you do not have to download and install the server-side extensions (available for PHP, ASP.NET and Java).

To use the online export service, you need to add just one line of code (see below). For user convenience you can attach this function to Export to PDF/Excel button with onclick event. With this code, the grid will send its configuration and data to the server which will process it and return the required document: PDF or Excel file.

Grid to PDF:

grid.toPDF("http://dhtmlxgrid.appspot.com/export/pdf");

Grid to Excel:

grid.toExcel("http://dhtmlxgrid.appspot.com/export/excel");

 
Grid to Excel

 
The export service works with dhtmlxGrid v.2.6 and above. The document generated with the online service will have a short note and link to http://dhtmlx.com. If you would like to use this service in a commercial project, this note can be removed (please contact us at sales[at]dhtmlx.com for the details).

If you decide to use the locally installed export services, you can find the download links and detailed instructions here: Grid to PDF and Grid to Excel.

Comments

  1. bk February 26, 2013 at 6:51 am

    Is this online service holding the grid data and convert it to excel and pdf in your host?

    then what about secure report can be protected?

    In case of secure data, Do I need to be install library locall and run it on my local server?

    please let me clearify in terms of secure report.

    Thanks,
    BK.

    • Ivan February 27, 2013 at 3:30 pm

      The online export service doesn’t cache anything, just gets incoming xml and produces excel/pdf on its base.
      But it doesn’t support ssl and data may be interrupted by someone else.
      So if it’s important to keep your data safe then the best way would be to install the export script on your own local server with ssl.

  2. Ed August 3, 2015 at 6:36 pm

    Service is down. Will you move it somewhere else or is just temporary?

  3. Dani August 6, 2015 at 3:38 pm

    Hello,

    I have the same Ed’s problem, has always worked well for export, but since a few days ago is not working.

    They have made some change?

Leave a Reply