Printing cards

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
bsouthuk
Posts: 261
Joined: Fri Dec 05, 2008 7:25 pm

Printing cards

Post by bsouthuk » Mon Aug 24, 2009 10:28 am

Hi, wonder if somebody could help.

I have developed some quote generating software in RunRev studio 3.5 and am having problems printing pages exactly as they are shown on the cards themselves.

I'm using the folowing scrypt:

Code: Select all

  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
It all works ok apart from a lot of the text displayed on my cards are not alligned when printed.

The positioning of my text on the cards are definitely correct but when I print these cards sometimes the text at the end of each line are cut off or sometimes text in one field are not allined with the text in a field above or below.

In short, the text isnt always being printed as it is shown on the cards.

Am I missing a trick or 2?

Thanks

Daniel

BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1239
Joined: Sat Apr 08, 2006 1:10 pm
Contact:

Post by BvG » Mon Aug 24, 2009 11:07 am

try the formatforprinting property.
Various teststacks and stuff:
http://bjoernke.com

Chat with other RunRev developers:
chat.freenode.net:6666 #livecode

bsouthuk
Posts: 261
Joined: Fri Dec 05, 2008 7:25 pm

Post by bsouthuk » Mon Aug 24, 2009 12:43 pm

You're a star

Thankyou

Post Reply