Printing in Director - hack


[ Zettels Traum ] [ search / suche ]

von dp am 17.April 97 um 22:43:41:

zu: Director 5.0 von Jens Tielemann am 01.Januar 97 um 15:02:22:

Here's a total hack, and an old one to boot, but a very reliable (and
cheap) one which sometimes produces even better results than purchased
solutions. Warning-- it's not really for the faint of heart or novice user.
Here goes: You make a "print movie" -- a movie that the user never sees but
exists soley for the purpose of printing.

What you do is create a movie that's about 800x1100 pixels (the print area
of a 8.5x11 paper), then lay out common elements like borders and graphics
by dropping them on the stage. Just treat it as a page layout program.
Multiple templates can be created simply by adding new frames and labels.

Your Director app then opens the movie as a Movie-In-A-Window *without*
actually opening the display window (so it's open as a file but not visible
to the user) and loads text or special graphics members into your templates
using global variables and clipToCast.

Since it's all Lingo driven, you can get as simple or complex as your needs
and skills dictate. Then you simply issue the printfrom command to print
out whatever template pages you need.

You can print out ANYTHING you can see on a director screen this way, and
it's pretty darn WYSIWYG.




Dazu:























D. Plänitz