Legacy Print problem

Richmond Mathewson geradamas at yahoo.com
Sat Nov 8 16:22:47 EST 2008


Being a fairly lazy chap I shall merely quote, verbatim from the Documentation of Runtime Revolution 2.0.1:

"printScale property

Specifies how much cards are shrunk or expanded when printing.

set the printScale to ratio

set the printScale to 2 -- double-size cards
set the printScale to .25 -- quarter-size cards

Use the printScale property to control the size of printed cards.

Value:
The printScale is a positive number.

By default, the printScale property is set to 1.

Comments:
The printScale specifies the ratio between the number of pixels in the card and the number of points on the printed page. A ratio of 1 means the printed and screen card should be the same size, if the screen's resolution is 72 pixels per inch.

For example, if a card is 360 pixels wide and you want its printed image to be 4 inches (288 points) across, set the printScale to 0.8 (288 pixels divided by 360 points)."


"printRotated property

Specifies whether Revolution prints in landscape mode or portrait mode.

set the printRotated to {true | false}

set the printRotated to true

Use the printRotated property to print wide pages.

Value:
The printRotated is true or false.

By default, the printRotated property is set to false.

Comments:
If the printRotated property is set to false, printing is done in portrait mode--the short sides of the paper are the top and bottom of the printed page.

If the printRotated is true, the direction of the printed output is rotated 90 degrees, so the long sides of the paper are the top and bottom.

  Tip:  On Mac OS systems, to set the orientation of the printout, use the answer printer command to display the Page Setup dialog box."

AND . . . GUESS WHAT . . .

printScale is exactly the same as in 2.9

HOWEVER . . . printRotated has been deprecated as of version 2.9

[presumably ??? for something which is considered better . . . ]

I see that in the documentation for 2.9 it says:

"The printRotated property is deprecated as of version 2.9.  Setting the 
printRotated to true is equivalent to setting the printPaperOrientation to
 "landscape".  New applications should use printPaperOrientation in 
preference to printRotated."

Have just uploaded a "one button wonder" to revOnline 
(progged in RR 2.0.1 !!!) called "PRINT IDEAS.rev" (sorry, bad
attack of originality there). It contains one card and one button
which contains the following script:

on mouseUp
  answer "Do you want to print in landscape format ?" with "No" or "Yes"
  if it is "Yes" then
    set the printRotated to true
  else
    set the printRotated to true
  end if
  answer "Do you wish to scale your print-out ?" with "Half" or "Double" or "No"
  if it is "Half" then
    set the printScale to .5
  end if
  if it is "Double" then
    set the printScale to 2
  end if
  if it is "No" then
    --whistle "Kathy call the cattle home" through your nose
  end if
print card "Horror"
end mouseUp

this seems to illustrate how one can "do things" without too much fuss.

sincerely, Richmond Mathewson.
____________________________________________________________

A Thorn in the flesh is better than a failed Systems Development Life Cycle.
____________________________________________________________


      



More information about the use-livecode mailing list