Problem with printing in landscape mode

Levi Kendall ljk144 at gmail.com
Tue Jan 10 13:22:59 EST 2006


Hi All,
  I'm currently having a problem with printing in landscape mode in
Revolution.  The problem seems to be related to displaying the print
dialog.  I've only tried this on a windows system, but the documentation
indicates that Mac OS does not support the setting "printRotated" so it's
not really applicable either.

The following 2 lines of code should print the card "mycard" in landscape
mode.  However I end up with a portrait mode page.  (As a side note the
stack that mycard is in is sized 400x400.)

  answer printer
  set the printRotated to true
  print card "mycard" into 72,72,(72+400),(72+400)

Now if the option of selecting a printer is removed from the code the
printout will properly use landscape.  However I've noticed I have to
shutdown the entire Rev-IDE and restart it to have this work if "answer
printer" has been called at any time in the current session.  So the revised
code reads as follows and after restarting Revolution and I get landscape
mode.

  set the printRotated to true
  print card "mycard" into 72,72,(72+400),(72+400)

If at all possible I need the user to be able to select which printer to
use.  Bypassing this option and using the default printer is not an
acceptable change to the functionality of the program.  Does anyone know how
to fix this or have encoutered the same or similar issue?  Thanks.

-Levi Kendall



More information about the use-livecode mailing list