а

Online export service


#1

If you have problems with local installations of grid-to-pdf or grid-to-excel services, you can try to use the online version.

PDF

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

Excel

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

#2

I am having an issue with the Grid2Excel functionality.

I have the downloaded version grid2excel_100909.zip. Is there a difference between that version and the online version.

The spreadsheet created with the version I downloaded has an issue. On columns AA, BB, CC, etc, get no color formatting and that formatting get shifted to the right column.

When I have used the online version, the formatting works fine.

Thanks,
MatthewL.


#3

Hi,

Whenever I use online export service on Google Chrome I got this error:

[b]Error: Server Error

The server encountered an error and could not complete your request.
If the problem persists, please report your problem and mention this error message and the query that caused it.[/b]

But it works fine on Mozilla Firefox and Opera.

Can u help me?


#4

Hi.
Could you provide page which calls export?
Locally it works properly.


#5

how can i remove the link to your website when using the online export service?


#6

Write about this one to sales@dhtmlx.com, please.


#7

You mean i have to pay?


#8

As far as I know, so far we have not any commercial solutions for above web-service, you need to discuss the possible solutions with some-one from sales department.


#9

We have no PHP or Java, so i tried the online Export Service.

I only get the following Error Message:


Error: Server Error
The server encountered an error and could not complete your request.

If the problem persists, please report your problem and mention this error message and the query that caused it.

Can you give me a hint what’s wrong?

I have referenced the export JS and i use the following onclickevent to export:

onclick="mygrid.toPDF(‘http://dhtmlxgrid.appspot.com/export/pdf’)


#10

Hi.
Could you provide grid initialization code or link to your page with grid?


#11

I sent the Code in a PM…


#12

Theilmair, I sent answer in a PM.


#13

Update file dhtmlxgrid_export.js from attachment, please.
Your version of this one is old-fashioned and causes Internal server error.
dhtmlxgrid_export.zip (2.63 KB)


#14

PERFECT!

THX a lot! :smiley:


#15

I am using DHTMLX grid v 2.0 professional edition. if i add the above script , will my grid get exported to excel… please suggest


#16

Hi,
dhtmlxGrid 2.0 doesn’t support export to pdf/excel.
You have to update it to use export feature.


#17

The online export service is of somewhat use, may be for php it will be working fine and the support is available, however for JAVA its hard and I believe not everyone will find it good enough to use in their project.

Using online export service
Pros:- You do get a pdf with all text wrapped up in the columns. :smiley:
Cons:- You cannot

  1. add header image,
  2. add information from other resources
  3. adjust the size of the columns
  4. cannot customize the font of the text

I think dhtmlx support should be enhanced for JAVA too.

Thanks,
St


#18

Hi,
thanks for your feedback.
By the way, you may use parameter fontsize to specify font size which you like:

mygrid.toPDF("http://dhtmlxgrid.appspot.com/export/pdf?fontsize=10");

#19

Thanks Radyno for your reply.

I took grid-pdf-java.war file and customized it as per my application needs. Now I am able to

  1. add header image,
  2. add information from other resources
  3. adjust the size of the columns
  4. customize the font of the text

Thanks again for your directions.

Steve.


#20

Prompt please, prescribe a number of ways:
gridReports.toPDF(baseUrl+’/grid-to-pdf/generate.php’);
and the second:
gridReports.toPDF(’http://www.dhtmlx.com/docs/products/devExchange/grid-to-pdf/generate.php’);

And they do not work. You receive a blank page with “eternal loading” and does not load. So, what I’m trying both locally and on the server. Why is it not working?