I add this in exportresult.php to get the name of survey in the file name of export result
case "doc":
//insert for add title name in the export file .doc
$query="SELECT * FROM {$dbprefix}surveys_languagesettings WHERE surveyls_survey_id=".$surveyid;
$result=db_execute_assoc($query) or safe_die("Couldn't get privacy data<br />$query<br />".$connect->ErrorMsg());
$row=$result->FetchRow();
$row=substr(str_replace(array('*', ':', '/', '\\', '?', ''),array(' '),$row),0,31); // Remove invalid characters
$titrefichier=str_replace("surveyls_title", "", $row);
$titrefichier=str_replace(' ', '_', $titrefichier);
header("Content-Disposition: attachment; filename=results-quest-".$surveyid."-".$titrefichier.".doc");
// end
for .xls same above just change :
$workbook->send('results-quest-'.$surveyid.'-'.$titrefichier.'.xls');
//
if that can help somebody
I look to find the solution for adding the text result inside the statistics
results instead of clicking on the button
If anybody has already the solution, thanks for your help
\mireille