You use the FlexPrintJob class to print one or more Flex objects, such as a Form or VBox container.
你可以使用 FlexPrintJob 类来打印一个或多个 Flex 对象, 例如: Form 或 VBox 容器.
For each object that you specify, Flex prints the object and all objects that it contains.
对于你指定的每一个对象, Flex 将会打印这个对象以及这个对象中所包含的所有对象.
The objects can be all or part of the displayed interface, or they can be components that format data specifically for printing.
这些对象在显示界面中可以全部或部分显示, 或者专门为打印输出的格式化数据的组件.
The FlexPrintJob class lets you scale the output to fit the page, and automatically uses multiple pages to print an object that does not fit on a single page.
FlexPrintJob 类能让你按比例以合适的大小输出到页面, 并且打印一个对象如果一张页面不够时, 会自动输出到多张页面.
You use the FlexPrintJob class to print a dynamically rendered document that you format specifically for printing.
你可以使用 FlexPrintJob 类打印按指定格式动态提交的文档.
This capability is especially useful for rendering and printing such information as receipts, itineraries, and other displays that contain external dynamic content, such as database content and dynamic text.
这项功能特别有用, 例如: 打印收入信息, 旅游活动日程和其他显示包含外部扩展的动态内容, 例如: 数据库内容和动态文本.
You often use the FlexPrintJob class within an event listener. For example, you can use a Button control with an event listener that prints some or all of the application.
你通常使用 FlexPrintJob 类在一个事件监听器中, 例如: 你可以使用一个 Button 控件, 在它的事件监听事件中打印部分或全部应用程序.
Note: The FlexPrintJob class causes the operating system to display a Print dialog box. You cannot print without some user action.
Build and send a print job
1. Create an instance of the FlexPrintJob class
var printJob:FlexPrintJob = new FlexPrintJob();
2. Start the print job
printJob.start();
3. Add one or more objects to the print job and specify how to scale them:
printJob.addObject(myObject, FlexPrintJobScaleType.MATCH_WIDTH);
4. Send the print job to the printer:
printJob.send();
分享到:
相关推荐
Flex 打印 例子 Flex 打印 例子 Flex 打印 例子
flex 打印源代码
关于Flex自带的打印及打印功能,代码较全,较容易理解。不错的资源!
Flex打印预览,本人找N久才找到希望能给朋友们帮上忙
flex 打印控件 应该说是相当完美了。 但只能够用于grid打印和打印预览
flex打印机制,使用flex内置打印容器类解决打印问题。
flex 打印预览
flex 打印小实例源码,已经测试过的,希望能对大家有所帮助。
有两个ArcGis实现的打印功能,以及使用的包,及查看例子的地址等.是自己做时的总结
FlexReport.zip,这个是Flex的打印程序
NULL 博文链接:https://goby2008.iteye.com/blog/836201
NULL 博文链接:https://shuaiqixiao4.iteye.com/blog/650162
FLEX内存释放优化原则,内存泄露解决方法,内存泄露情况
如果要使用分页效果,则必须使用标签"PrintAdvancedDataGrid"(Flex3中的标签)才能够实现分页效果,感兴趣的朋友可以参考下
第8章 Flex打印 265 8.1 Web打印方案 265 8.1.1 原生打印 265 8.1.2 宿主打印 265 8.1.3 外部打印 266 8.2 为什么使用Flex来打印 267 8.3 使用PrintJob打印 267 8.4 深入了解PrintJob 268 8.5 实战PrintJob...
本人从其他网站上下载的,333页全,看到CSDN上没有完整的版本,所以共享一下。...第8章 Flex打印 第9章 Flex企业应用性能优化 第10章 Flex企业应用开发的其他技术 附录 Flex Builder 中的项目如何迁移至Flash Builder
本人从其他网站上下载的,333页全,看到CSDN上没有完整的版本,所以共享一下。...第8章 Flex打印 第9章 Flex企业应用性能优化 第10章 Flex企业应用开发的其他技术 附录 Flex Builder 中的项目如何迁移至Flash Builder
ArcGIS FlexViewer 中只提供了打印功能但没有打印预览功能,该代码包将为你提供真实的打印预览。
关于Flex中各种图形的例子 LineChart Columnchart Areachart Bubblechart Barchart 的例子 数据从后台的Java类获取 也可以从数据库获取