Forum Support

 
Advanced Search


[1]

Offline mct2002
Free Member
Posts: 76
Posted on: February 21, 2017, 12:04:09 PM

I am having trouble when trying to print pages from my website in IE & Edge.  When I go to print preview it will show the first page of content, but all the pages after that show only the template (no article).  So if a visitor is trying to print off an article or form, any information that runs over onto a second page (or longer) is just not there.

I have this same problem on all of my sites which use different themes (Business Pro, Design Control, Spectrum, EZ Webhosting, Ambient, Corporate Response, Corpway, Luxon, and Soul Search).  I have tried printing from other Joomla sites that do not use Shape5 templates and do not experience the same problem.  This leads me to believe that the problem is Shape5 related.

My sites are running:
Joomla Core:  3.6.5
Vertex:  4.0.0 or 4.1.0

I am using
Microsoft Edge 38.14393.0.0
Internet Explorer 11.576.14393.0

My site running Business Pro can be found at https://www.custominternet.biz
Logged

Offline mikek
Free Member
Posts: 28743 WWW
Posted on: February 22, 2017, 08:51:02 AM

Hello,

A template does not control any part of the printing process of a browser, and we would have no way to debug that for you. My guess is that the browser doesn't like a width somewhere on the page so it goes off the page, but that's just a guess. But a template has not to effect how a browser interprets its print layout. If you want articles to be printed you should enable the Print drop down on the articles, which is a built in feature to Joomla for printing articles.
Logged

Offline mct2002
Free Member
Posts: 76
Posted on: February 22, 2017, 01:47:24 PM

I disagree.  I set up a test website with one article and one form.  When I use the Beez3 or Protostar templates the pages print fine.  I installed the Business Pro template (with no customization, vertex v4.0.0) and made that the default template.  When it is set as the default template the first page is printed as expected, but all pages after that are blank until I reach the footer.

Using the print drop-down will not work for some of my sites because the visitors need to be able to print articles with forms in them that they have filled out.  The built-in Joomla function will not do this.  Only printing from the browser will.

I can share login credentials with you to the test site I created if that would help.
Logged

Offline mikek
Free Member
Posts: 28743 WWW
Posted on: February 22, 2017, 08:36:06 PM

Hello,

Using a different template will stylize with different layouts of the modules and content, different widths, different fonts, etc. I'm sorry but the template does not control how a browser interprets a page to print in any way, that is entirely controlled by the browser. We have no way to change how a browser prints. Furthermore, I can print with Firefox and Chrome and all content shows, which proves that the browser interprets how the content prints. This is a browser issue and something we cannot control. Printing Joomla content is intended to be done through the article controls.

If you search online there are lot of forum threads of similar issues with IE. This particular post suggests a css change to force an auto height on print:

http://stackoverflow.com/questions/17145413/extra-blank-page-when-i-print-except-in-ie-is-it-my-print-css

You can try this, but again no guarantee as this is a browser issue, and these are just hacks to try and manipulate the layout on print.

html, body {
    height: 100%;
    @media print {
        height: auto;
    }
}

You could also try this:

html, body {
    height: 100%;
    @media print {
        height: 99%
        page-break-after: avoid;
        page-break-before: avoid;;
    }
}
Logged
[1]

Jump to:  


Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Page created in 0.02 seconds with 21 queries.
Need some help getting your site up and running? Be sure to check out our tutorials area, post on the forum or hire us
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.