Printing multiple pages

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Newbie4
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 332
Joined: Sun Apr 15, 2012 1:17 am
Contact:

Printing multiple pages

Post by Newbie4 » Mon Jun 04, 2012 5:03 am

I build all my text and data into a scrolling field. Then I put that field on another card that also contains a header field with a name on it. When I go to print the card only the first page prints. (It is also shortened - the text does not go to the bottom of the card).

Code: Select all

put the field "myText" into field "printText" on card "printCard"
 print card "printCard"
1. How can I get it to print the rest of the pages?
2. How can get it to print to the bottom of the page?
3. How can I better position my header field?

Thanks
Cyril Pruszko
https://sites.google.com/a/pgcps.org/livecode/
https://sites.google.com/a/setonhs.org/app-and-game-workshop/home
https://learntolivecode.com/

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Printing multiple pages

Post by Mark » Mon Jun 04, 2012 9:24 am

Hi,

Do you mean that the text in the field is too long to fit on one card? The easiest way to solve that is to use the revPrintField command. If you read about it in the dictionary, you will see how you can add a header and other useful features.

Kind regards,

Mark
Last edited by Mark on Fri Jun 15, 2012 10:32 am, edited 1 time in total.
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10320
Joined: Wed May 06, 2009 2:28 pm

Re: Printing multiple pages

Post by dunbarx » Mon Jun 04, 2012 3:00 pm

Newbie.

Because the text in the scrolling field goes beyond (perhaps far beyond) what is visible, LiveCode will not automatically extract that unseen data and print it.

Mark's post about the "revPrintField" command is the answer, and it is important that you see the difference. One command takes field data and prints it, and it is unimportant what is visually shown in that field on a card. The other just prints a card, and it is unimportant what is contained in the field.

Craig Newman

Newbie4
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 332
Joined: Sun Apr 15, 2012 1:17 am
Contact:

Re: Printing multiple pages

Post by Newbie4 » Mon Jun 04, 2012 5:20 pm

I understand now. You explained it very nicely, Thank you
Cyril Pruszko
https://sites.google.com/a/pgcps.org/livecode/
https://sites.google.com/a/setonhs.org/app-and-game-workshop/home
https://learntolivecode.com/

Post Reply