Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
4.6.2
-
None
-
KUbuntu 64-bit AMD 10.04 LTS. All updates applied.
Description
After loading the attached ASCII text file into a TextEdit field on a dialog, printing with the following code fails misserably to any Lexmark printer using the newer "universal" Lexmark drivers shipping with KUbuntu 10.04 LTS. This impacts a large number of printers.
void ReportBrowserDialog::printFile()
{
QPrinter printer(QPrinter::HighResolution);
printer.setOutputFormat( QPrinter::NativeFormat);
QPrintDialog *dlg = new QPrintDialog(&printer, this);
dlg->setWindowTitle(tr("Print File"));
if (dlg->exec() == QDialog::Accepted)
delete dlg;
} // end printFile method
Changing the above code to use PostScriptFormat will print "some" of the file contents. Any line beginning with an ASCII FormFeed character is completely ignored even though said lines are loaded just fine in the TextEdit object.