Packageflash.printing
Classpublic final class PrintUIOptions
InheritancePrintUIOptions Inheritance Object

Language version: ActionScript 3.0
Runtime version: AIR 2

The PrintUIOptions class is used to specify options for print dialogs that are displayed to the user. Create a PrintUIOptions instance, set its properties, and pass it as the uiOptions parameter of the PrintJob.showPageSetupDialog() or PrintJob.start2() method.

For example, the following code uses a PrintUIOptions instance to specify the min and max page numbers when the Page Setup dialog is displayed:

import flash.printing.PrintJob;
 
 var myPrintJob:PrintJob = new PrintJob();
 if (myPrintJob.supportsPageSetupDialog)
 {
     var uiOpt:PrintUIOptions = new PrintUIOptions();
     uiOpt.minPage = 1;
     uiOpt.maxPage = 3;
     myPrintJob.showPageSetupDialog(uiOpt);
 }

See also

PrintJob
PrintJob.showPageSetupDialog()
PrintJob.start2()


Public Properties
 PropertyDefined by
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
  disablePageRange : Boolean = false
Specifies whether the page range in the print dialog is disabled (true) or the user can edit it (false).
PrintUIOptions
  maxPage : uint = 0
The maxiumum page number the user can enter in the print dialog.
PrintUIOptions
  minPage : uint = 0
The minimum page number a user can enter in the print dialog.
PrintUIOptions
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
Public Methods
 MethodDefined by
  
Creates a new PrintUIOptions object.
PrintUIOptions
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of this object, formatted according to locale-specific conventions.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Property detail
disablePageRangeproperty
public var disablePageRange:Boolean = false

Language version: ActionScript 3.0
Runtime version: AIR 2

Specifies whether the page range in the print dialog is disabled (true) or the user can edit it (false). The default value is false, indicating that there is no restriction on editing the page range.

The default value is false.

maxPageproperty 
public var maxPage:uint = 0

Language version: ActionScript 3.0
Runtime version: AIR 2

The maxiumum page number the user can enter in the print dialog. The default value is 0, indicating that there is no restriction on the maximum page number.

The default value is 0.

minPageproperty 
public var minPage:uint = 0

Language version: ActionScript 3.0
Runtime version: AIR 2

The minimum page number a user can enter in the print dialog. The default value is 0, indicating that there is no restriction on the minimum page number.

The default value is 0.

Constructor detail
PrintUIOptions()constructor
public function PrintUIOptions()

Language version: ActionScript 3.0
Runtime version: AIR 2

Creates a new PrintUIOptions object. You pass this object to the uiOptions parameter of the PrintJob.showPageSetupDialog() or PrintJob.start2() method.

See also