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

15th February 2006, 16: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:

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

17th March 2006, 17: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.

20th March 2006, 14: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...

20th March 2006, 22: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").