CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviReport (Moderator: Dave Greenberg) »
  • Report Print PDF in Landscape
Pages: [1]

Author Topic: Report Print PDF in Landscape  (Read 2558 times)

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Report Print PDF in Landscape
June 14, 2011, 09:13:30 am
We have a wide CiviReport with many columns we used to be able to print in landscape mode (wide) with 3.3.  Now with 3.4 it prints always in portrait (narrow) paper and it's confusing how I might get it to print in landscape again.  There are no print or template settings on the report itself.

Any ideas?
Try CiviTeacher: the online video tutorial CiviCRM learning library.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Report Print PDF in Landscape
June 14, 2011, 03:49:33 pm
This was a side effect of the new "Configure PDF Page Formats" improvement - the fact that CiviReport should be passing in "Landscape" orientation for all reports by default was missed.

It's an easy fix if you want to patch your install. Change line 1796 in CRM/Report/Form.php to:
Code: [Select]
         CRM_Utils_PDF_Utils::html2pdf( $content, "CiviReport.pdf", false, array('orientation' => 'landscape') );

I've filed an issue and committed the fix for the next release:
http://issues.civicrm.org/jira/browse/CRM-8303

Note that you can also fix this behavior w/o patching by creating a default PDF Page Format with Landscape Orientation - but this may affect other PDF outputs.
Protect your investment in CiviCRM by  becoming a Member!

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: Report Print PDF in Landscape
June 21, 2011, 03:08:13 pm
Excellent - thanks
Try CiviTeacher: the online video tutorial CiviCRM learning library.

markimus

  • I post occasionally
  • **
  • Posts: 75
  • Karma: 0
Re: Report Print PDF in Landscape
December 19, 2011, 08:12:08 pm
Can this be set so that its landscape for  one specific report and not for all reports? 
Success is the ability to go from one failure to another with no loss of enthusiasm.

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Report Print PDF in Landscape
December 19, 2011, 11:29:57 pm
Quote
Can this be set so that its landscape for  one specific report and not for all reports?

Currently no, it will change all reports to landscape.

Kurund
Found this reply helpful? Support CiviCRM

sraisz

  • I post occasionally
  • **
  • Posts: 52
  • Karma: 0
    • sambandha.net
  • CiviCRM version: 3.3.5
  • CMS version: Drupal 6
Re: Report Print PDF in Landscape
March 27, 2012, 09:36:55 pm
I suggest it be mentioned somewhere that changingthe PDF default format for letters also changes it for reports.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviReport (Moderator: Dave Greenberg) »
  • Report Print PDF in Landscape

This forum was archived on 2017-11-26.