Results 1 to 4 of 4

Thread: Customize pdf report

  1. #1
    fadiwissa is offline Junior Member
    Join Date
    Sep 2011
    Posts
    2

    Default Customize pdf report

    Hello,
    I am using SugarCRM PRO 6.2.1 (in trial)
    The question below is related to the built-in Reports module...

    I am running some basic table reports on the Opportunities module.
    Next, I use the "Print as PDF" button to print the report to PDF.

    The report looks great, but I need to be able to change the width of some report columns since they are currently almost equally sized though the content of some columns is much longer than others.

    What is the easiest way to customize the built-in reports module's pdf's?

    Would sincerely appreciate any prompt and clear help!

  2. #2
    christianknoll's Avatar
    christianknoll is offline Sugar Community Member
    Join Date
    Nov 2008
    Location
    Vienna
    Posts
    939

    Default Re: Customize pdf report

    This is not supported with SugarCRM and the standard reporting module. You can neither set the column width in Display nor on the PDF: If this is required you can use our KINAMU Reporter where the option is available. Yet PDF Printing is only available in the licensed premium edition.

    christian.

    Quote Originally Posted by fadiwissa View Post
    Hello,
    I am using SugarCRM PRO 6.2.1 (in trial)
    The question below is related to the built-in Reports module...

    I am running some basic table reports on the Opportunities module.
    Next, I use the "Print as PDF" button to print the report to PDF.

    The report looks great, but I need to be able to change the width of some report columns since they are currently almost equally sized though the content of some columns is much longer than others.

    What is the easiest way to customize the built-in reports module's pdf's?

    Would sincerely appreciate any prompt and clear help!

  3. #3
    rafael.q.g@hotmail.com's Avatar
    rafael.q.g@hotmail.com is offline Sugar Community Member
    Join Date
    Jun 2011
    Location
    Florianópolis - Brazil
    Posts
    782

    Default Re: Customize pdf report

    You also could try to use some php pdf library, and generate a new opportunity report based on database/sugar objects data, and make your own layout.
    Rafael Queiroz Gonçalves
    Advanced OMG UML Certified Professional
    Sun Certified Enterprise Architect for the Java Platform
    Sun Certified Programmer for the Java 2 Platform
    IBM Certified Advanced Application Developer - Lotus Notes and Domino
    IBM Certified Application Developer - IBM WebSphere Portlet Factory
    Computer Science Mastering / UFSC - PPGCC

  4. #4
    prpatel Guest

    Default Re: Customize pdf report

    Hi fadiwissa,

    You can set the width of column of pdf file that you generate from the Sugar's Report module.

    You have to copy the file "sugarpdf.listview.php" from the location "modules/Reports/Sugarpdf/sugarpdf.listview.php" and put that file to the location custom/modules/Reports/Sugarpdf/sugarpdf.listview.php.

    And add the following code in the display() function of that file.

    $this->options['width'] = array( 'name of your column' => 'size of the column that you want to set');


    This chages will be upgrade safe.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 2011-02-19, 07:58 AM
  2. Replies: 2
    Last Post: 2008-10-30, 10:55 AM
  3. Customize report layout
    By Robbert in forum Help
    Replies: 1
    Last Post: 2008-09-22, 06:54 AM
  4. Replies: 3
    Last Post: 2008-06-03, 02:31 PM
  5. Customize Report SQL
    By t.hoang@conergy.us in forum Help
    Replies: 0
    Last Post: 2007-05-23, 07:58 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •