View comments | RSS feed

PrintJob


Object
    |
    +-PrintJob

public class PrintJob
extends Object

The PrintJob class lets you create content and print it to one or more pages. This class, in addition to offering improvements to print functionality provided by the print() method, lets you render dynamic content offscreen, prompt users with a single Print dialog box, and print an unscaled document with proportions that map to the proportions of the content. This capability is especially useful for rendering and printing dynamic content, such as database content and dynamic text.

Additionally, with properties populated by PrintJob.start(), your document can read your user's printer settings, such as page height, width, and orientation, and you can configure your document to dynamically format Flash content that is appropriate for the printer settings. These user layout properties are read-only and cannot be changed by Flash Player.

Availability: ActionScript 1.0; Flash Player 7

Property summary

Modifiers

Property

Description

 

orientation:String [read-only]

The image orientation for printing.

 

pageHeight:Number [read-only]

The height of the actual printable area on the page, in points.

 

pageWidth:Number [read-only]

The width of the actual printable area on the page, in points.

 

paperHeight:Number [read-only]

The overall paper height, in points.

 

paperWidth:Number [read-only]

The overall paper width, in points.

Properties inherited from class Object

constructor, __proto__, prototype, __resolve


Constructor summary

Signature

Description

PrintJob()

Creates a PrintJob object that you can use to print one or more pages.

Method summary

Modifiers

Signature

Description

 

addPage(target:Object, [printArea:Object], [options:Object], [frameNum:Number]) : Boolean

Sends the specified level or movie clip as a single page to the print spooler.

 

send() : Void

Used following the PrintJob.start() and PrintJob.addPage() methods to send spooled pages to the printer.

 

start() : Boolean

Displays the operating system's print dialog boxes and starts spooling.

Methods inherited from class Object

addProperty, hasOwnProperty, isPropertyEnumerable, isPrototypeOf, registerClass, toString, unwatch, valueOf, watch



Version 8

Comments


Orangutan Ltd said on Mar 7, 2006 at 9:02 AM :
It appears that the correct printing Origin point fails (reverts to 0,0 of _root) on targeting a MC with addPage() after loading dynamic content into the targeted clip

see:-
http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=288&threadid=1127483&enterthread=y

 

RSS feed | Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/flash/8/main/00002608.html