Print All Cards

Devin Asay devin_asay at byu.edu
Wed Sep 19 13:27:31 EDT 2007


On Sep 19, 2007, at 10:15 AM, Jim Carwardine wrote:

> Hi Folks... Anybody have a code snippet that will print multiple  
> cards on a
> page?  Jim

Jim,

This handler will print all the cards in the stack, four to a page:

  on mouseUp
	 set the printRotated to true
	 open printing with dialog
	 if the result is "Cancel" then exit mouseUp
	 set the printScale to .4
	 set the printMargins to 36,36,36,36 --1/2 inch margins
	 set the printGutters to 18,18 --1/4 inch gutters
	 repeat with i = 1 to number of cards
	   print card i
	 end repeat
	 close printing -- sends job to printer
   end mouseUp

You can play with the property settings to get just the look you want.

HTH
Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University




More information about the use-livecode mailing list