簡體   English   中英

如何在Advanced Datagrids中打印自定義項目渲染器圖像

[英]How to Print the custom item renderer images in Advanced Datagrids

我們已經使用flex-blazeDS-Java開發了一個Web應用程序。 現在,我們有了一個要求,即只要用戶單擊“打印”按鈕,就打印該用戶存在的頁面。 我能夠打印我的flex組件和高級datagrid,但無法打印在datagrid中渲染的自定義項目渲染器圖像。 還有當我在高級datagrid中有大數據時如何打印多頁。

使用PrintAdvancedDataGrid進行打印。 使用相同的自定義itemRenderer,以便顯示相同的圖像。 PrintAdvancedDataGrid將提供幫助分頁的功能。

從Adobe文檔中:

//將首頁排隊。 printJob.addObject(thePrintView); //當有更多頁面時,請打印它們。 while(thePrintView.myDataGrid.validNextPage){//將下一頁數據放入視圖中。 thePrintView.myDataGrid.nextPage(); //排隊附加頁面。 printJob.addObject(thePrintView); }

有關更多信息,請查看: http : //livedocs.adobe.com/flex/3/html/help.html?content=printing_5.html

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM