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 (Moderator: Dave Greenberg) »
  • Printing Contact Details Missing Subsequent Pages
Pages: [1]

Author Topic: Printing Contact Details Missing Subsequent Pages  (Read 3072 times)

bails

  • Guest
Printing Contact Details Missing Subsequent Pages
April 07, 2009, 02:03:30 am
Hi, we have a client with this issue and I can reproduce it on http://drupal.demo.civicrm.org

On the demo I have added 20 custom fields, I then choose a record and fill in these custom fields and hit the print button.  In this preview I can see all the data I entered, but, if I do a print from the browser or a print preview from the browsers menu (firefox-3.0.6) I only get the first page of the details the second page is completely blank apart from the url at top right, page 2 of 2 at bottom left and the date at bottom right.

Please help this is rather urgent and a bit of a show stopper!

Michał Mach

  • Ask me questions
  • ****
  • Posts: 748
  • Karma: 59
    • CiviCRM site
  • CiviCRM version: latest
  • CMS version: Drupal and Joomla latest
  • MySQL version: numerous
  • PHP version: 5.3 and 5.2
Re: Printing Contact Details Missing Subsequent Pages
April 07, 2009, 03:02:35 am
Hey,

It is a glitch in Firefox - it doesn't handle some elements with overflow: auto when printing. Printing the same page in Safari or MSIE should work fine.

You need to set overflow for #crm-container to visible when in print view. It probably can be done by adding custom template for templates/CRM/common/print.tpl and including below CSS somewhere in there.

div#crm-container
overflow: visible;
}

Thx,
m
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

My absolute favourite: Wordpress Integration!.

Donate Now!

bails

  • Guest
Re: Printing Contact Details Missing Subsequent Pages
April 07, 2009, 03:51:12 am
Hi

You are correct about Safari and IE however when i make the suggested changes to print.tpl

<div id="crm-container" lang="{$config->lcMessages|truncate:2:"":true}" xml:lang="{$config->lcMessages|truncate:2:"":true}" style="overflow: visible;">

I get exactly the same results as before.

Thanks

Michał Mach

  • Ask me questions
  • ****
  • Posts: 748
  • Karma: 59
    • CiviCRM site
  • CiviCRM version: latest
  • CMS version: Drupal and Joomla latest
  • MySQL version: numerous
  • PHP version: 5.3 and 5.2
Re: Printing Contact Details Missing Subsequent Pages
April 07, 2009, 04:16:47 am

Try including this before #crmcontainer div definition:

<style>
{literal}
#crm-container {   
overflow: visible !important;
}
{/literal}
</style>         


Thx,
m
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

My absolute favourite: Wordpress Integration!.

Donate Now!

bails

  • Guest
Re: Printing Contact Details Missing Subsequent Pages
April 07, 2009, 04:37:19 am
Hi I've tried the above and it still does not work. in print.tpl

<style>
{literal}
#crm-container {
overflow: visible !important;
}
{/literal}
</style>

<div id="crm-container" lang="{$config->lcMessages|truncate:2:"":true}" xml:lang="{$config->lcMessages|truncate:2:"":true}">

And in the source of the page I see

<style>

#crm-container {   
overflow: visible !important;
}

</style>         

<div id="crm-container" lang="en" xml:lang="en">

So very odd??

Again Thanks for your help

Michał Mach

  • Ask me questions
  • ****
  • Posts: 748
  • Karma: 59
    • CiviCRM site
  • CiviCRM version: latest
  • CMS version: Drupal and Joomla latest
  • MySQL version: numerous
  • PHP version: 5.3 and 5.2
Re: Printing Contact Details Missing Subsequent Pages
April 07, 2009, 05:53:00 am
Just tried it and it definitely fixes the problem in my browser (Firefox 3.0.8 ). There was a couple of similar pains in Firefox over time, maybe there is another issue with 3.0.6? I would recommend using Firebug first to verify that overflow style is changed, than if it doesn't help, I would probably look around Firefox bugtracker to see what other potential causes might be breaking things in your case.

Thx,
m
« Last Edit: April 14, 2009, 06:07:53 am by Michał Mach »
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

My absolute favourite: Wordpress Integration!.

Donate Now!

bails

  • Guest
Re: Printing Contact Details Missing Subsequent Pages
April 14, 2009, 01:44:36 am
Hmm OK so Firefox may have a bug that prevents this but IE is said to be ok.  When I go to print in IE all the info is displayed, if I do a print preview however I only ever see content on the first 2 pages the 3rd page is always blank.  Could someone confirm this?

Michał Mach

  • Ask me questions
  • ****
  • Posts: 748
  • Karma: 59
    • CiviCRM site
  • CiviCRM version: latest
  • CMS version: Drupal and Joomla latest
  • MySQL version: numerous
  • PHP version: 5.3 and 5.2
Re: Printing Contact Details Missing Subsequent Pages
April 14, 2009, 06:11:57 am
Hey,

Checked in MSIE 7.0.5730 - seems to be behaving all right.

Thx,
m
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

My absolute favourite: Wordpress Integration!.

Donate Now!

bails

  • Guest
Re: Printing Contact Details Missing Subsequent Pages
April 14, 2009, 07:45:32 am
Indeed?  I've just checked using IE-7.0.5730.13 and I get nothing at all on page 3.  I'll need to recreate this on http://drupal.demo.civicrm.org/ when I have enough time to add that much custom data, but it is defintely not working here using 2.1.6.

Thanks

Bails

bails

  • Guest
Re: Printing Contact Details Missing Subsequent Pages
April 15, 2009, 12:42:12 am
I've tried to recreate this on http://drupal.demo.civicrm.org which is 20240. You are correct in that IE 7.0.5730.13 can see ALL the fields in a print preview however Firefox 3.0.8 cannot see the third page in a print preview.  Pity my install is 2.1.6 maybe  I'll have to look at upgrading it.

Thanks

Bails

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Printing Contact Details Missing Subsequent Pages

This forum was archived on 2017-11-26.