I had a similar situation and tried the routine you described. I
couldn't get it to work reliably. The printing always seemed to hang
after the first card printed. It could have been my limited experience
with printing code, but I tried a slightly different approach.
First, put all the card information into a multi-dimensional array.
Clone as many cards as you need (the number of keys in the array - 1).
In a repeat loop, fill in all the cards from the array.
Then, use the print stack command.
After the print routine, delete all the cards except card 1.
Works great for me.
John
On Aug 29, 2010, at 10:00 AM, [email protected]
wrote:
I'm wondering if someone more versed in printing than I can offer a
suggestion for printing multiple pages from a stack where the card
content
is dynamically created.
The stack is essentially a bare bones PowerPoint-like app that creates
custom charts and text-only "slides". Only one card is used for the
display
of all content -- groups are hidden and shown as needed when viewing a
slideshow, and field/chart contents are populated on-the-fly.
I can write a routine to to tell the app to automatically create
each slide,
but I don't know if I should try to print directly from the main
display
stack, or copy card elements out to an offscreen stack and print
from there.
The display stack can fit standard paper size, so there's no
resizing/reformatting issue to deal with there.
Could this be as straightforward as the following?
open printing
<generate slide 1>
print this cd
<generate slide 2>
print this cd
...etc.
close printing
Also, what is the proper method for centering content on a printed
page? I
see Rev provides printRectangle and printPaperRectangle properties,
but I
can't tell from their descriptions what I would use to center stack
content
within the live area of a printed page.
Thanks for any advice/suggestions.
Best Regards,
Scott Rossi
Creative Director
Tactile Media, UX Design
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution