The FlexPrintJob class is a wrapper for the flash.printing.PrintJob class.
It supports automatically slicing and paginating the output on multilple pages,
and scaling the grid contents to fit the printer's page size.

printAsBitmap

Specifies whether to print the job content as a bitmap (true)
or in vector format (false).
Printing as a bitmap supports output that includes a bitmap image with
alpha transparency or color effects.
If the content does not include any bitmap images with
alpha transparency or color effects, you can print in higher quality
vector format by setting the printAsBitmap property to
false.

The default value is true.

Implementation public function get printAsBitmap():Boolean public function set printAsBitmap(value:Boolean):void

Constructor Detail

FlexPrintJob

()

Constructor

public function FlexPrintJob()

Language Version:

ActionScript 3.0

Product Version:

Flex 3

Runtime Versions:

Flash Player 9, AIR 1.1

Constructor.

Method Detail

addObject

Adds a UIComponent object to the list of objects being printed.
Call this method after the start() method returns.
Each call to this method starts a new page, so you should format
your objects in page-sized chunks.
You can use the PrintDataGrid class to span a data grid across
multiple pages.

scaleType:String (default = "matchWidth") — The scaling technique to use to control how the
object fits on one or more printed pages.
Must be one of the constant values defined in the FlexPrintJobScaleType
class.

<?xml version="1.0"?>
<!-- Custom control for the header area of the printed page. -->
<s:VGroup name="FormPrintHeader"
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
width="60%"
horizontalAlign="right" >
<s:Label text="This is a placeholder for first page contents"/>
</s:VGroup>