Printing to the right of the page width

Roger.E.Eller at sealedair.com Roger.E.Eller at sealedair.com
Wed Jan 16 18:42:01 EST 2002


I played with this approach and came up with the script below for a print
button.
So far, it has printed any size card SCALED to the width of a Letter sized
page.
~Roger

> Try this:
>
>   print this card from 288,6 to 632,466 into 0,0,344,460
>
> --
> Jeanne A. E. DeVoto ~ jeanne at runrev.com
> http://www.runrev.com/
> Runtime Revolution Limited - Power to the Developer!

# PRINT CARD TO FIT PAGE WIDTH
on mouseUp
  put the rectangle of this card into myRectangle
  set itemDelimiter to ","
  put item 1 of myRectangle & itemDelimiter into myXYstartpoint
  put item 2 of myRectangle after myXYstartpoint
  put item 3 of myRectangle & itemDelimiter into myXYendpoint
  put item 4 of myRectangle after myXYendpoint
  print this card from myXYstartpoint to myXYendpoint into 10,10,600,800
end mouseUp





More information about the use-livecode mailing list