CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.

YesSoftware Forums -> CodeCharge Studio -> Español

 problema al exportar a excel muchos registros

Print topic Send  topic

Author Message

Posts: 49
Posted: 08/05/2009, 2:34 PM

hola maestros me baso en este ejemplo para exportar a excel . el problema lo tengo cuando exporto mas de 734 ,registro simplemente me entrega un archivo vacio si exporto menos ahi funciona bien , alguien me puede oritar para ver que podria ser.


global $ExportToExcel;
global $ToExcelLink;
global $Header;
global $Link1;

$ExportFileName = "Report.xls";
if (CCGetFromGet("export") == "1") {
//Hide the ToExcelLink Link
$ToExcelLink->Visible = false;
$Link1->Visible = false;
$Header->Visible = false;

//Set Content type to Excel
header("Content-Type: application/");
//Fix IE 5.0-5.5 bug with Content-Disposition=attachment
if (strpos($_SERVER["HTTP_USER_AGENT"],"MSIE 5.5;") ||
strpos($_SERVER["HTTP_USER_AGENT"],"MSIE 5.0;")) {
header("Content-Disposition: filename=" . $ExportFileName);
} else {
header("Content-Disposition: attachment; filename=" . $ExportFileName);

En el evento de grid before select pongo este código

global $employees;

if (CCGetFromGet("export") == "1") {
//Show up to 10,000 records
$employees->PageSize = 10000;
$employees->ds->PageSize = 10000;
//Hide the Navigator
$employees->Navigator->Visible = false;
View profile  Send private message

Add new topic Subscribe to topic   

These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.

Home   |    Search   |    Members   |    Register   |    Login

Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by  and YesSoftware, Inc.