header('Pragma: public'); } else { header('Content-Disposition: attachment; filename="' . $nom_fic . '"'); header('Pragma: no-cache'); } // display */ send_file_download_headers($OOo->GetMimetypeDoc(), $nom_fic, 'attachment'); //header('Content-type: '.$OOo->GetMimetypeDoc()); //header('Content-type: '.$OOo->getMimetype()); header('Content-Length: '.filesize($OOo->GetPathnameDoc())); //header('Content-Length: '.filesize($OOo->GetPathname())); $OOo->FlushDoc(); //envoi du fichier traité $OOo->RemoveDoc(); //suppression des fichiers de travail //$OOo->sendResponse(); //envoi du fichier traité $OOo->remove(); //suppression des fichiers de travail // Fin de traitement des tableaux $OOo->close(); //======================================= // FIN AFFICHAGE DES DONNÉES //======================================= ?>