formatForPrinting Again!

Timothy Due tim at leaf25.com
Mon Jan 30 22:35:16 EST 2006


Hi Everyone,

I've been having some trouble with FormatForPrinting on Windows. The 
software I am working on is a worksheet-maker program, so I need to be able 
to print cards with many different sizes of fields and text.

Printing is done by creating a new printing stack, copying the card I want 
to print across to it, saving, closing and deleting it, (to remove from 
memory) setting FormatForPrinting to true, opening and then printing it into 
the printPaperSize (minus margins).

After trying many many things, it seems that I can get 2 different types of 
output.

1. With formatForPrinting OFF, I get a printout that looks quite nice, 
except that if I have a long field across the page, words at the end of a 
line sometimes get chopped off.

2. With formatForPrinting ON, none of the lines are chopped off at the end, 
but instead words are wrapped earlier than on screen . This causes the text 
to extend downwards beyond the bottom of the field, and so text at the 
bottom of the field is chopped off the print out.

Neither of these two results are really acceptable. Is there any way I can 
have a printout that doesn't cut off words at EITHER the side or the bottom?

Thanks in advance,

Timothy Due

http://www.leaf25.com 




More information about the use-livecode mailing list