开发者

How to Print the custom item renderer images in Advanced Datagrids

We have developed a web application by using flex-blazeDS-Java. Now we got a requirement that to print the user existed page whenever he clicks on Print button. I am able to print my flex components and advanced datagrid but not able to print the custom item renderer images which are rendered in datagrid. And also how to print the mu开发者_运维技巧ltiple pages when I have large data in advanced datagrid.


Use PrintAdvancedDataGrid for printing purposes. Use the same custom itemRenderer so that the same images appear. The PrintAdvancedDataGrid will provide functionality to help pagination.

From Adobe documentation:

// Queue the first page. printJob.addObject(thePrintView); // While there are more pages, print them. while (thePrintView.myDataGrid.validNextPage) { //Put the next page of data in the view. thePrintView.myDataGrid.nextPage(); //Queue the additional page. printJob.addObject(thePrintView); }

For more info, check out: http://livedocs.adobe.com/flex/3/html/help.html?content=printing_5.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜