Printing two or more documents together

Posted on 2008-11-05
Last Modified: 2012-05-05
I have say two documents that I want to print. I have a xps document and a rtf document. I want to print these two documents together i.e. when these two are printing any other print job should be waiting in the print queue and should not come in between.

I will be printing these two documents in a windows service. I will be submitting print job for these two documents one after the other. I want to make sure that no other job comes in between these two.

Thanks in advance.
Question by:jackro
    LVL 37

    Expert Comment

    I don't think there is any way of doing so from the PC. It could be done on the printer, if it allows you to save print jobs on disk. In that case you can send your documents to it, then walk up to the printer and print them manually from the disk.

    Author Comment

    I am looking for something that can be done programatically.
    LVL 16

    Accepted Solution

    I think that the only way you'd get close to what you want is something like the following:

    (a) Print the first (XPS) document, but use the driver's 'print to file' option to send the print stream to a named file on the workstation.
    Unfortunately, most drivers will ask for the name of the file for each print request; I don't know if this can be changed to always use a particular name (and hence not ask for the name each time).

    (b) Print the second (RTF) document, and again use the driver's 'print to file' option to send the print stream to a second named file on the workstation.

    (c) Concatentate the contents of the two original print files into one merged print file.

    (d) 'Send' the contents of the concatenated print file direct to the printer port.
    For (most) TCP/IP connected devices, you could use the 'lpr' command to do this.

    But even with this mechanism, with the contents of the one file sent in a continous stream to the target printer, the stream will still consist of two jobs, so (especially if you have more than one active port (e.g. parallel and RJ45)on the printer) it might still theoretically be possible for another job to be interleaved.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    If you use a Brother DCP 130C or similar Brother printer, at some point you might encounter the following problem: after you change the ink cartridge, the printer displays an "ink empty" message. Sometimes you just need to follow the instructions…
    How to solve seemingly unsolvable printer issues. Users sometimes run into printing issues where all the normal steps do not seem to work. Well the steps below can show users how to take one extra step beyond the normal steps needed to remove old…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now