PDA

View Full Version : Printing a PRN file on an NDPS printer



janca
15th February 2006, 17:15
How do I print a PRN file on an NDPS printer using Qt components? Applying operating system shell commands it is easy to send a file to another network printer, but NDPS printers seem to be very problematic. :confused:

janca
17th March 2006, 17:27
I'm still waiting for a solution to this problem.

wysota
17th March 2006, 18:00
This is not a Qt specific question. Moving to General Discussion.

If you want to have an answer on this, you should probably ask more specific questions. Tell what you did and what exactly the problem is.

janca
20th March 2006, 15:27
The code below shows what I am trying to do. I have a PRN file (or a PostScript file) that I just want to send to the selected printer.



QPrinter printer;
QPrintDialog *dialog = new QPrintDialog(&printer, this);
if (dialog->exec() == QDialog::Accepted) {
QFile file("file.prn");
// Send the file to the printer...
}

wysota
20th March 2006, 23:11
AFAIR prn files are files which were already passed through the printer driver, so it should be enough to send the file directly to the printing device (a crude example: "cat file.prn > /dev/printer").