Dear Friends,
I am trying to print text using Qprinter, it gives error like this,
lpr: Unsupported format 'application/postscript'!
then i tried with setoutputformat() member, still gives same error can any body help me please,
code isQt Code:
//! [18] QPrinter printer; printer.setPrintProgram("lpr"); dialog->setWindowTitle(tr("Print Document")); dialog-> if (editor->textCursor().hasSelection()) return; //! [18] editor->print(&printer);To copy to clipboard, switch view to plain text mode
Bookmarks