I have been trying to make the export to Excel with a large grid (approximately 10k rows). The grid has pagination so I use use a callback to generate on the server-side.
I store the xml in a variable “xml” and I can ensure it is generated just fine.
I thought it was something regarding a timeout on the server as the Excel is being generated for smaller grids. I also tried increase the memory_limit and the timeout limits in the php.ini file or by using the ini_set function, both to no avail.
Hi,
unfortunately grid-excel-php doesn’t support exporting so big datasets.
Please, try to use the follow url for exporting to excel: dhtmlxgrid.appspot.com/export/html
It’s online export service which generates html table and returns it into browser with excel extension. This file may be opened in excel.
In fact it works. At least it has been working - although it take a lot of time - however it a specific network conditions it seems to have problems with timeout of the requests. If I can recall rightly, the grid uploaded by the client to the server and then the server processes it by performing the conversion and post the Excel file back to the client. It seems that if the request takes to long (the upload part) it is failing somehow.
I’ll have a look in this URL though it won’t work locally, will it?
Back to my first question, I know you said it is not supported, but given that it is working in some networks and not in others, would you have any considerations to make? I mean, it looks like there is a timeout in between when generating the xml and sending to the server. When the Excel file is generated is usually about 3MB.
Just as a hypothesis, do you think I could trigger the function on the client side invoking a server routine to generate the XML in the server’s memory, calling the generate function and only then posting it back to the client? (instead of generating the xml in the client and virtually loading in the grid and making use of the callback to use the server’s generate function)
By the way, I tried using the web service but I got this error:
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.
Hi
there a way to export data directly from database using connector and grid-excel-php script.
Here is a demo with direct export to pdf. Export to excel is the same, you should only use gridExcelGenerator.php direct_export.zip (1.02 MB)
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan