spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / experts / javascript / column91


Print Templates, Part II: TemplatePrinter

Flat panel TV's
Digital Cameras
RAM
Developer News
GIPS Technology to Voice-Enable iPhone Apps
Citrix CTO Eyes the Future of Virtualization
The Pitfalls of Open Source Litigation

In this column we continue our series on print templates. Print templates first appeared in Internet Explorer 5.5, and were later improved in Internet Explorer 6. In column 89, Print Templates, Part I, we showed you how to assemble a print template with two out of the four elements of print templates: LayoutRect and DeviceRect. In this column we add the TemplatePrinter element. The TemplatePrinter behavior supports a wealth of methods and properties. In Column 89 we showed you how to preview a document. In this column we'll show you how to invoke the printing from within the print template.

The only way to call TemplatePrinter is through C++ code. Relax, we are not going to teach you C++ in this column. Luckily, Microsoft wrote an application that you can feed your own print templates and the documents you want to print. This application comes with sample print templates that our columns are based on. In this column we introduce the usage of TemplatePrinter with a two-page static document. We'll show you how to start a print job, how to print a page, and how to end a print job.

In this column you will learn:

You can also see the full code listing of the print template(II) or load it from the enclosed zipped file.

Next: How to use Microsoft's print template loader

More Resources from Doc JavaScript
Columns Popular Columns Tips Tools
Latest Columns
41-50 | 31-40 | 21-30
11-20 | 1-10
Working with Windows
JavaScript and Frames
Bookmarklets
Random Tips
Personalized Tips
RSS Channels
Menu Builder
Rollover Builder
Rotation Builder
Reference Tip Categories (want one?)
Links
For Your Site
Did you learn something? Do you like this site? Please link to us!

http://www.internet.com



JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

webref The latest from WebReference.com Browse >
Simple Comments Meets OpenID · Primitive Data Types, Arrays, Loops, and Conditions: Part 3 · How to Create an Ajax Autocomplete Text Field: Part 11
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Boutique Telecom Provider Partners for Mobile UC · Review: LobsterTunes · OCZ Upgrades their Core Solid-State Drive Line to V2


Produced by Yehuda Shiran and Tomer Shiran
All Rights Reserved. Legal Notices.
Created: August 27, 2001
Revised: August 27, 2001

URL: http://www.webreference.com/js/column91/index.html