Print Templates, Part I: A Final Word - Doc JavaScript
Print Templates, Part I
A Final Word
In this column we started a new thread about print template development. We showed you how to use the DeviceRect
and LayoutRect
behaviors to format Web pages before printing. We taught you how to do it statically, when the number of pages is known and small. We also detailed the code that creates pages on the fly, to fit the exact number of required pages. We went carefully over the code and explained every relevant line.
In this column you have learned:
- How to create print templates with behaviors
- How to use the
DeviceRect
behavior - How to use the
LayoutRect
behavior - How to create a static print template with
DeviceRect
andLayoutRect
- How to dynamically create the first page
- How to dynamically create the rest of the pages
We also showed you the full code listing of the static print template, as well as the dynamic print template. You could load them from the enclosed zipped file.
Produced by Yehuda Shiran and Tomer Shiran
All Rights Reserved. Legal Notices.
Created: July 30, 2001
Revised: July 30, 2001
URL: https://www.webreference.com/js/column89/10.html