For testing, my application needs to send a document to the printer. I don't really want to print this out, so I am looking for a 'fake' printer driver which could essentially print to nothing. I know that nul exists, but I also need the fake printer to support pausing. Any idea if the nul port can do this or any other fake printer driver?

link|improve this question

76% accept rate
13  
why not use the XPS printer driver or an application like CutePDF which emulates a PDF printer ? – Sathya Nov 29 '10 at 4:03
2  
@sathya: Exactly. +1 – Xavierjazz Nov 29 '10 at 4:20
@sathya, why not post that as an answer? Seems a lot of people like that idea ;) – nhinkle Nov 29 '10 at 7:54
@nhinkle wasn't sure if that was the right option :)) posted as an answer now. – Sathya Nov 29 '10 at 13:37
1  
Because for me it prompts for a dialog for the filename to save as. For testing this won't work for me, but it is a great answer. – Raymond Nov 29 '10 at 17:43
show 1 more comment
feedback

5 Answers

up vote 8 down vote accepted

Create a new printer and set its port to NUL:

You will need to add a new local port and just type NUL: where it asks for port name.

New Port

link|improve this answer
feedback

As I had mentioned in the comments, Windows ( Vista & above) come with a XPS printer driver which you can use. Else install CutePDF which emulates a printer driver.

link|improve this answer
feedback

I recommend the free and open-source PDFCreator

You can pause printing from PDFCreator's control dialog

alt text

link|improve this answer
1  
That looks suspiciously like the built-in Windows print dialog... – Hello71 Nov 30 '10 at 1:22
1  
@Hello71 It should, it is the Windows print dialog. A PDF printer like netvope mentioned installs itself as a windows printer and does the work after the document is printed to it. – Kalamane Oct 15 '11 at 3:28
feedback

For completeness, Microsoft actually has two different virtual printers included with office, depending on which version of office you use: Microsoft Document Image Writer for Office 2003, and Microsoft XPS Document Writer for Office 2007 and newer.

Of course, like the PDF option these will both still create files on disk. But in the Windows world it's very likely you may already have one of these available.

link|improve this answer
feedback

You can use DOPDF

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.