如何隐藏打印对话框中的Flex? [英] How to hide print dialog box in Flex?

查看:216
本文介绍了如何隐藏打印对话框中的Flex?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能隐藏在柔性印刷对话框?我使用的是类FlexPrintJob。

下面是我的code:

  VAR打印:FlexPrintJob =新FlexPrintJob();
print.printAsBitmap = TRUE;

如果(print.start()){
 print.addObject(IMG为UIComponent,而FlexPrintJobScaleType.SHOW_ALL);
 print.send();
}
 

解决方案

您可以使用START2()从类的PrintJob

 进口flash.printing.PrintJob;
 进口flash.printing.PrintUIOptions;

 VAR myPrintJob:PrintJob的=新的PrintJob();
 VAR uiOpt:PrintUIOptions =新PrintUIOptions();
 uiOpt.minPage = 1;
 uiOpt.maxPage = 3;
 VAR接受:布尔= myPrintJob.start2(uiOpt);
 

Is it possible to hide the printing dialog in flex? I'm using the class FlexPrintJob.

Here's my code:

var print:FlexPrintJob = new FlexPrintJob();
print.printAsBitmap = true;

if ( print.start() ) {  
 print.addObject( img as UIComponent, FlexPrintJobScaleType.SHOW_ALL );
 print.send();
}

解决方案

you can use start2() from the printjobs class

 import flash.printing.PrintJob;
 import flash.printing.PrintUIOptions;

 var myPrintJob:PrintJob = new PrintJob();
 var uiOpt:PrintUIOptions = new PrintUIOptions();
 uiOpt.minPage = 1;
 uiOpt.maxPage = 3;
 var accepted:Boolean = myPrintJob.start2(uiOpt);

这篇关于如何隐藏打印对话框中的Flex?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆