janschenkel at yahoo.com
Sun Aug 4 16:31:01 CDT 2002
I haven't yet gotten round to printing issues, but I
think I can help you with question 2.
As everything in RunRev is defined in pixels, we can
convert that to and from inches and/or centimeters
with a little math.
The screen resolution on a mac is 72 dpi, or 1 inch =
72 pixels. Now a quick glance at www.convert-me.com
teaches us that 1 inch = 2.54 centimeters.
So supposing we must print something at 7 centimeters
from the top and 4 centimeters from the left of the
paper, we have to set the topleft to (X,Y) with :
X = 7 / 2.54 * 72 = 198
Y = 4 / 2.54 * 72 = 113
You will have to adjust this a couple of pixels up and
left in order to compensate for printer margins, but
this should help you a long way.
"As we grow older, we grow both wiser and more foolih
at the same time." (De Rochefoucald)
--- Yves Coppé <yvescoppe at skynet.be> wrote:
> I work on Mac OS X 10.1.5.
> I have forms to fill.
> All the datas are in flds.
> I have a card in a stack "mi_print".
> The background is white
> the flds are filled.
> I have a btn with the script :
> (mi_lock is the command to lock the screen, the
> put the defaultstack into savedDefaultStack
> go inv to stack "mi_print"
> set the defaultstack to "mi_print"
> set the printScale to "1"
> set the printmargins to "4,4,72,72"
> open printing with dialog
> print card "cdName"
> close printing
> close stack "mi_print"
> set the printmargins to "72,72,72,72"
> set the defaultstack to savedDefaultStack
> The background of what I print is colored (between
> grey and green)
> although on the screen the background of the cd is
> The pinter is an epson color inkjet.
> 2 questions :
> 1) How can I print a form starting from a stack ?
> 2) How can I easy calculate the location of the flds
> so that the
> filled flds are just printed in the required place
> on the form ?
> Thank you.
> Yves COPPE
> Email : yvescoppe at skynet.be
> use-revolution mailing list
> use-revolution at lists.runrev.com
Do You Yahoo!?
Yahoo! Health - Feel better, live better
More information about the use-livecode