Added Comany Setup Option. 'Open Print Dialog Direct on Reports'. @notrinos.
[fa-stable.git] / reporting / includes / pdf_report.inc
index b41bb69e867d8b4c2831dbe509868f6ef95da468..5b468764fd2ed194af318adf0836b85840307230 100644 (file)
@@ -952,6 +952,9 @@ class FrontReport extends Cpdf
        {
                global $SysPrefs, $path_to_root;
 
+               if (!empty($SysPrefs->prefs['print_dialog_direct']))            
+                       $this->includeJS("print();"); // force to open print dialog
+
                if ($SysPrefs->pdf_debug == 1)
                {
                        $pdfcode = $this->Output('','S');