[Alba-desarrollo] SVN Alba r5396 -
prosistem/alba/trunk/alba/apps/principal/modules/informes/actions
commits en pressenter.com.ar
commits en pressenter.com.ar
Mie Ene 9 18:38:25 CET 2008
Author: josx
Date: 2008-01-09 15:38:25 -0200 (Wed, 09 Jan 2008)
New Revision: 5396
Modified:
prosistem/alba/trunk/alba/apps/principal/modules/informes/actions/actions.class.php
Log:
Hack a los headers para soportar explorer en los informes
Modified: prosistem/alba/trunk/alba/apps/principal/modules/informes/actions/actions.class.php
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/informes/actions/actions.class.php 2008-01-09 12:41:37 UTC (rev 5395)
+++ prosistem/alba/trunk/alba/apps/principal/modules/informes/actions/actions.class.php 2008-01-09 17:38:25 UTC (rev 5396)
@@ -457,9 +457,13 @@
}
$OOo->SaveXmlToDoc();
+ // OJO hay headers locos para que funcione en internet explorer
header('Content-type: '.$OOo->GetMimetypeDoc());
+ header("Cache-Control: public, must-revalidate");
+ header("Pragma: hack");
header('Content-Length: '.filesize($OOo->GetPathnameDoc()));
header('Content-Disposition: attachment; filename=informe'.$informe->getNombre().'.odt');
+ header("Content-Transfer-Encoding: binary");
$OOo->FlushDoc();
$OOo->RemoveDoc();
}
Más información sobre la lista de distribución Alba-desarrollo