Pārlūkot izejas kodu

Changes results .doc page to landscape for better output (BT#2724)

ywarnier 13 gadi atpakaļ
vecāks
revīzija
1c641153b6
1 mainītis faili ar 9 papildinājumiem un 1 dzēšanām
  1. 9 1
      main/gradebook/gradebook_result.class.php

+ 9 - 1
main/gradebook/gradebook_result.class.php

@@ -303,7 +303,15 @@ class GradeBookResult
         //$docx->addTable($data, $params);
         $docx->addList($values, $params);
         //$docx->addFooter('', $paramsHeader);
-        $docx->createDocx($filepath);
+        $paramsPage = array(
+        //    'titlePage' => 1,
+            'orient' => 'landscape',
+        //    'top' => 4000,
+        //    'bottom' => 4000,
+        //    'right' => 4000,
+        //    'left' => 4000
+        );
+        $docx->createDocx($filepath,$paramsPage);
         //output the results
         $data = file_get_contents($filepath.'.docx');
         $len = strlen($data);