Supporting each other

Community forums

Welcome, Guest
Username: Password: Remember me
The place for more technical questions for those who want to create new pagetypes or bespoke functionality.
  • Page:
  • 1

TOPIC: Printing

Printing 3 years 7 months ago #4401

  • Robert Fant
  • Robert Fant's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
I posted this earlier in "General Chat" but got no response.
Maybe this is where I should have posted.

Nonetheless,
I am using a "Plain Text" page.
There is enough stuff on this page that adds it's own scroll bar.

The problem I'm having is that when I print the page, only the stuff that is visible (scroll bar all the way up) prints. The rest is ignored.

How can I get it to print everything on the page?

Thanks,
Robert

Please Log in or Create an account to join the conversation.

Printing 3 years 7 months ago #4402

  • tom
  • tom's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 999
  • Thank you received: 211
Hi,

As far as I can tell, you cannot. This is not specifically a Xerte problem. It is how browsers print content with (internal) scroll bars.

Please Log in or Create an account to join the conversation.

Printing 3 years 7 months ago #4403

  • Robert Fant
  • Robert Fant's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
Hi Tom,

That cannot be completely accurate. I create "worksheets" for my classes, using JavaScript. I even have a script for page-breaks and everything prints nicely.

Here are two pages, one written in JavaScript only, one similar but WITHIN Xerte:

1) JavaScript page

2) Xerte page

I just need to figure out what I'm not understanding.

Please Log in or Create an account to join the conversation.

Printing 3 years 7 months ago #4404

  • tom
  • tom's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 999
  • Thank you received: 211
Of course you can this in code. But at this point in time, it's not handled in Xerte itself. You would need to add the code yourself.

Please Log in or Create an account to join the conversation.

Printing 3 years 7 months ago #4405

  • ronm
  • ronm's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 639
  • Thank you received: 170
Try this...
enable resuming so that you can generate a link direct to your page 2 e.g. will have #resume=2 on the end of the url
then on your page 2 where you want them to print add that link with &display=1024,1800 on the end
adjust the 1800 to be whatever display your inner content without scroll bars.

Might work?
Ron
Xerte developer & trainer
e-learning & m-learning consultant
mitchellmedia.co.uk | xerteacademy.com | learningapps.co.uk
Need direct commercial support with Xerte? mitchellmedia.co.uk/contact/

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Moderators: jjs
Time to create page: 0.045 seconds
Copyright © 2020 The Xerte Project.
Xerte logo Apereo logo OSI Logo

Search