PDF Landscape Reports

( From the Labs)

by Lion Solution

Print your PDF Report in landscape format.

#3939 - Compatibility with SuiteCRM 7.12

Closed Feature created by imlinaric 3 years ago

Hi, LandscapeReports works well with versions 7.11.x, but fails for me after upgrade to 7.12. I assume this is to the change of pdf engine as well as some changes in the structure of controller.php, like variable names). Are there plans to make LandscapeReports compatible to 7.12? Ivan

  1. MayerElyashiv member avatar

    Lion Solution Provider Affiliate

    3 years ago

    Dear @imlinaric, we haven't tried the 7.12 version yet but thank you for highlighting this. On https://demo.suiteondemand.com/ that is currently based on version #7.11.22 there's a field named orientation that does what you are looking for: TemplatePDF_creation.png

    Since the 7.12 is a preparatory version to jump up to the 8, we'll surely check each of ours plugin to be compatible with. Stay tuned!

  2. imlinaric member avatar

    imlinaric

    3 years ago

    Hi, I have tinkered with it, and these modifications to custom/modules/AOR_Reports/controller.php work for me on SuiteCRM 7.12.

            ob_clean();
            try {
                /* #LS, modified by IM Begin */
                $format = 'P';
                if ($this->bean->format_c == 'A4-L'){
                    $format = 'L';
                }
                /* IM: Also, ad new parameter 'orientation' to configurePDF!
                #LS end */
                $pdf = PDFWrapper::getPDFEngine();
                $pdf->configurePDF([
                    'mode' => 'en',
                    'orientation' => $format,
                    'font' => 'DejaVuSansCondensed',
                ]);
    
  3. aclerigo member avatar

    aclerigo

    2 years ago

    Do you have any updates for the latest version? It currently crashes our reporting when installing the module.

This case is public. Please leave out any sensitive information such as URLs, passwords, etc.
Saving Comment Saving Comment...