我有一个仪表板,其中包含高级数据网格和任何图表。我的打印功能似乎只打印数据网格而不打印图表。请参阅下面的代码。
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.
}
}
请帮助打印任何图表对象。谢谢。
答案 0 :(得分:1)
发现问题。只需要设置printJob.printAsBitmap = false;