Hi all,
I posted this problem awhile back with no response and am going to
try again before I call Adobe. I've seen others with the same issue,
but no resolutions pending.
I have used the code from Adobe's labs website:
http://labs.adobe.com/wiki/index.php/Flex_3:Feature_Introductions:_Advanced_DataGrid
The problem is that when using this function, as written, and I try
to print my ADG, all that is output from the printer is a gray box. Has
anyone else found the solution to this one?
Here is the code:
private function doPrint():void
{
var printJob:FlexPrintJob = new FlexPrintJob(); //
Create an instance of the FlexPrintJob class.
var printADG:PrintAdvancedDataGrid = new
PrintAdvancedDataGrid(); // Initialize the PrintAdvancedDataGrid control.
if (printJob.start() == true)
{
printADG.includeInLayout = false; // Exclude the
PrintAdvancedDataGrid control from layout.
printADG.source = memberRpt; // Provide the data
source for the report
addChild(printADG); // Add the print-specific
control to the application.
printJob.addObject(printADG,
FlexPrintJobScaleType.MATCH_WIDTH); // Add the object to print. Scale it
to fit width of page.
printJob.send(); // Send the job to the printer.
removeChild(printADG); // Remove the print-specific
control to free memory.
}
}
Many thanks,
Adrian