2013-04-15 42 views
2

我有一個由高級datagrids和anychart圖表組成的儀表板。我的打印功能似乎只打印數據網格而不打印圖表。請參閱下面的代碼。使用flex printjob打印網格和圖表

public function PrintDashboard():void{ 
printJob = new FlexPrintJob(); // calls the dialog 

if(printJob.start()) // Starts when the user presses ok 
{ 

    printJob.addObject(dashPreview,FlexPrintJobScaleType.MATCH_WIDTH); // the object you want to add, and the scaling you want to apply 
    printJob.send(); // Send everything to the printers.   
} 

}

請打印AnyChart的對象幫助。謝謝。

回答

1

發現問題。只需要設置printJob.printAsBitmap = false;