use of org.pentaho.di.ui.core.PrintSpool in project pentaho-kettle by pentaho.
the class Spoon method printJobFile.
private void printJobFile(JobMeta jobMeta) {
JobGraph jobGraph = getActiveJobGraph();
if (jobGraph == null) {
return;
}
PrintSpool ps = new PrintSpool();
Printer printer = ps.getPrinter(shell);
// Create an image of the screen
Point max = jobMeta.getMaximum();
Image img = jobGraph.getJobImage(printer, max.x, max.y, 1.0f);
ps.printImage(shell, img);
img.dispose();
ps.dispose();
}
use of org.pentaho.di.ui.core.PrintSpool in project pentaho-kettle by pentaho.
the class Spoon method printTransFile.
private void printTransFile(TransMeta transMeta) {
TransGraph transGraph = getActiveTransGraph();
if (transGraph == null) {
return;
}
PrintSpool ps = new PrintSpool();
Printer printer = ps.getPrinter(shell);
// Create an image of the screen
Point max = transMeta.getMaximum();
Image img = transGraph.getTransformationImage(printer, max.x, max.y, 1.0f);
ps.printImage(shell, img);
img.dispose();
ps.dispose();
}
Aggregations