最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
flex如何实现横向打印
时间:2022-07-02 17:00:34 编辑:袖梨 来源:一聚教程网
1. var thismc:Sprite=new Sprite();
2. thismc.width=stage.stageWidth;
3. thismc.height=stage.stageHeight;
4. thismc.x=0;
5. thismc.y=0;
6.
7. thismc.addChild(this.root);
8.
9. thismc.rotation = 90;
10. try{
11. var pj:PrintJob = new PrintJob(); //新建一个打印;
12. pj.start(); //弹出打印窗口;
13. thismc.width = pj.pageWidth; //先让对象适应纸张的宽度;
14. thismc.scaleY = thismc.scaleX; //按比例调节高度;
15. pj.addPage(thismc); //添加打印页;
16. pj.send(); //打印;
17. }catch (err:Error) {}
18. thismc.rotation = 0; //打印完毕,恢复
相关文章
- 微博网页版快速访问-微博电脑版官方登录直达入口 02-15
- 樱花动漫下载最新版本-樱花动漫官方正版安装入口与使用教程 02-15
- 淘宝连续打卡免费领奖入口在哪-淘宝连续打卡免费领奖为啥没有 02-15
- 夸克浏览器2026官网登录入口-夸克浏览器在线打开官网 02-15
- 知乎网页版直达-知乎官网链接速递 02-15
- 二重螺旋充值入口在哪-二重螺旋官网月石晶胚充值通道 02-15