Hi
This is a question about how to use the "get printers ()" function. The quote below is from Adobe. But I have no idea how to implement it
What I've tried so far is:
Code:
var myPrintJob:PrintJob = new PrintJob();
myPrintJob.jobName = "test";
myPrintJob.printer = "CutePDF Writer";
txt_Debug.text = myPrintjob.printers(); //nope
txt_Debug.text = get printers(); //nope
txt_Debug.text = this.printers; //nope
txt_Debug.text = printers(); //nope
Does anyone have any idea how to implement this given the following:
From Adobe:
Code:
printers
property
printers:Vector.<String> [read-only]
Language Version: ActionScript 3.0
Runtime Versions: AIR 2
Provides a list of the available printers as String name values.
The list is not precalculated; it is generated when the function is called.
If no printers are available or if the system does not support printing,
the value is null. If the system supports printing but is not capable of
returning a list of printers, the value is a Vector with a single element
(its length property is 1). In that case, the single element is the actual
printer name or a default name if the current printer name cannot be
determined.
Implementation
public static function get printers():Vector.<String>
Thanks