|
|||
|
Hi,
I have a pc with a label printer and a normal A4 printer. Here is what I want to do: My tool needs a custom print-settings panel where I can select and store the default printer for printing labels and the default printer for printing A4 pages. Once the app knows these settings I want to print to labels and A4 pages without having a printer settings screen. So how can I have a lookup of all printers and how can I print to a selected printer? Printer.printers looks like the method to use, but I can't get it to work. I want to access it from the AS3 SWFKit classes. thanks! |
|
|||
|
Ok, after trial 'n error ... I found this solution:
in swfKit, initialize script: Code:
//called from flex
function swfkitGetPrinterList() {
//Dialogs.msgBox("Printer.printers.join: " + Printer.printers.join("<$$>"));
var s = Printer.printers.join("<$$>");
return s;
}
Code:
var g:Global = new Global;
var s:String = g.swfkitGetPrinterList();
var printerlist:Array = s.split("<$$>");
![]() Anybody? |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|