Print subpanels

Hello guys, first of all thanks for your collaboration in this project, now I have this next question:

My system:
Ubuntu 12.04.5 LTS
PHP 5.3.10-1ubuntu3.15 with Suhosin-Patch (cli) (built: Oct 29 2014 12:19:04)
Zend Engine v2.3.0, Copyright © 1998-2012 Zend Technologies
MySQL Ver 5.5.41-0ubuntu0.12.04.1 for debian-linux-gnu on x86_64 ((Ubuntu))
Apache/2.2.22 (Ubuntu)
SuiteCRM Version 7.1.5 Sugar Version 6.5.20 (Build 1001)
FireFox 35.0.1

I’ve two questions regarding printing in SuiteCRM:

1-) In SugarCRM the “print button” had this code

onclick="SUGAR.ajaxUI.print();"

but in SuiteCRM has this code

onclick="printpage()"

which file should I edit so it can be like is on SugarCRM?
I’m asking this because I used to print subpanels in SugarCRM by modifying the view.detail.config.php file and all worked great, also I’ve touched some things in print.css so that I can remove the buttons and other things.

2-) As a side of question number 1, I wont need that if I can print subpanels using the Print PDF feature that’s available in SuiteCRM, is there a chance to print the info in subpanels? using the PDF Template module I can’t find variables that match my relations from subpanels.

Either answer is OK, but both questions would be great if it’s possible.

Thanks for the help as always.

Best Regards

Hi mikebeck,

This code can be found in SuiteCRM file

themes/Suite7/tpls/footer.tpl

This may change depending what theme you are in.

The function that it calls also appears to be in the same file so you could modify the code if you know what you want it to do.

Ian.

1 Like

Thank man for the answer. What about the PDF Template? is there a chance to print relationships from subpanel? I like more the PDF Template feature because I can format the page as I want, with the simple print you can’t Imagine things I’ve done to format the page I want to print hahahaha :stuck_out_tongue:

Best Regards

Hi Mikebeck,

There is not really any way to do this via the pdf template module, There might be a way to do it via a reporting module then export the report to CSV which would allow you to load it into excel to format ? Failing this its custom code im afraid.

Regards,

Ian.

1 Like

Thanks Ian, with the normal printing I can survive like before. Thanks for the help.

Best Regards

1 Like