Results 1 to 5 of 5

Thread: Printing a PRN file on an NDPS printer

  1. #1
    Join Date
    Jan 2006
    Posts
    6
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Post Printing a PRN file on an NDPS printer

    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.

  2. #2
    Join Date
    Jan 2006
    Posts
    6
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Question Re: Printing a PRN file on an NDPS printer

    I'm still waiting for a solution to this problem.

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Printing a PRN file on an NDPS printer

    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.

  4. #4
    Join Date
    Jan 2006
    Posts
    6
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Question Re: Printing a PRN file on an NDPS printer

    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.

    Qt Code:
    1. QPrinter printer;
    2. QPrintDialog *dialog = new QPrintDialog(&printer, this);
    3. if (dialog->exec() == QDialog::Accepted) {
    4. QFile file("file.prn");
    5. // Send the file to the printer...
    6. }
    To copy to clipboard, switch view to plain text mode 

  5. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Printing a PRN file on an NDPS printer

    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").

Similar Threads

  1. Printing txt file vs Printing pdf file
    By rmagro in forum Qt Programming
    Replies: 3
    Last Post: 9th July 2012, 15:45
  2. How to Print a doc file (or binary file) to printer
    By rmagro in forum Qt Programming
    Replies: 15
    Last Post: 5th September 2008, 15:46
  3. Replies: 1
    Last Post: 3rd September 2008, 14:16
  4. printing a(n existing) file in Qt
    By caduel in forum Qt Programming
    Replies: 3
    Last Post: 21st July 2008, 07:20
  5. qt-3.3.8 fail in scratchbox
    By nass in forum Installation and Deployment
    Replies: 0
    Last Post: 25th May 2007, 15:21

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.