Helping people with computers... one answer at a time.

Print to file is an option on many print dialogs that sends printer output to a file rather than the printer. It's of very limited utility these days.

I am puzzled by a little item called "Print to file". I am loathe to experiment with it (from another painful experience!!). Nevertheless, I would like to know what it is, what it does, what it's for, and if or when I should actually use it . Does it have any practical benefit or is it simply a technical appendage?

I vote for appendage.

The super-short version is that it's somewhat of a relic. Unless you know that you have a specific need, you can safely ignore it.

It's highly unlikely that you'll ever have a specific need.

But because you're curious...

Print to file

Here's an example of the option that we're talking about:

Print To File option

This option may appear in different locations on different print dialogs, but in general, it means the same thing.

Printing, at a high level

Printing is really a kind of conversion process.

For example, when printing a web page, the software involved in the printing operation "translates" the web page that you see from its original HTML into instructions that are specific to the printer that you happen to have. These settings cause the printer to print what you see. Many printers are different and have different sets of instructions. Even when printers are similar (for example, many printers use the "postscript" page description language), each printer has its own features and quirks.

When an application prints, it communicates with the standard Windows printing interface, which communicates with the driver for the selected printer; this then transforms the printing instructions into whatever language it is that your printer understands.

The result is then sent to the printer which then presumably prints what you intended.

Printing to a file

If you select the Print to file option, the data that would normally be sent to the printer is written to a file instead. Typically, the output is saved as a ".prn" file.

The idea is that if printing in your application is a time-consuming or inconvenient process, you can click Print once and save the output of that print process. Then, any time that you need an additional printed copy of that document, you simply copy it to the printer.

Copying a ".prn" file to the printer is typically as simple as dragging and dropping the file onto the printer icon in Windows Explorer, or entering a copy command like "COPY FILENAME.PRN PRN" in a Windows Command Prompt.

Given that printing directly from the original document isn't typically that difficult of a process, there's little need for printing to a file any more.

And, in fact, there are a few reasons why you might not want to.

Problems with Print to file

An error while attempting to print to file

While researching this article, I tore my hair out for a while dealing with that error - "An unknown error occurred while printing".

Not a very helpful message.

Here's what I learned:

  • Not all printer drivers support "Print to file" - even if the checkbox is enabled.

  • It's possible that once you get an error trying an unsupported Print to file, you'll continue to get that error even when you don't select Print to file thereafter.

  • That persistent error situation might be resolved by selecting a different printer and successfully printing to that, once.

  • It's good to have more than one printer in your system. Finally, a use for the "Microsoft XPS Document Writer".

If you're like me and like to experiment a little, hopefully that little discovery will save you some time if your printer not support Print to file.

Print to file limitations

As you can see from the description of how it works above, a file created using Print to file is specific to the printer that was selected at the time you printed. The file contains the set of printing instructions for that printer.

That means that you cannot take a ".prn" file created by Print to file and expect it to work on just any printer. At a minimum, it'll only work on printers that are compatible with yours - possibly only on the same make and model of printer.

A much more portable approach to printing to file that typically does more of what most people expect, is to use a print-to-PDF printer instead. PDF files are portable, readable on almost all computers, and can themselves be printed again on whatever printer you have installed.

As you can see, Print to file really has very limited utility.

But at least now, you know why you don't need it.

Article C4826 - May 23, 2011

Leo Leo A. Notenboom has been playing with computers since he was required to take a programming class in 1976. An 18 year career as a programmer at Microsoft soon followed. After "retiring" in 2001, Leo started Ask Leo! in 2003 as a place for answers to common computer and technical questions. More about Leo.

Not what you needed?

Recent Comments
22 Comments

Leo,
I teach a monthly Windows class for members of our senior computer club. (I'm 71). Some of your hints are beyond the capabilities of our members, however, many would be perfect to pass along. I want to know if I can have permission to pass the hints to class members, giving you credit for the hint when I do.
Thanks in advance.
Norman Miller

Depends on what you mean by "hint" :-). You can certainly share your knowledge, share links to my articles and the like. About the only thing that would technically be a violation of my copyright is if you were to print my full articles and distribute them independant of my web site.
Leo
28-May-2011

Posted by: Norman at May 25, 2011 6:40 AM

Printing to pdf (I use CutePDF) is also useful for:
1. Storing a web page, rather than having another folder created with all its files. (though it seems there are other ways of dealing with this)
2. Printing only one page of what might otherwise be more pages than one wants to.

Posted by: James at May 26, 2011 5:01 AM

Great answer. I always wondered what that was. But you've now piqued my curiosity about another item when you write, "Finally, a use for the "Microsoft XPS Document Writer"." As I only have one printer connected, why do I see the "Document writer" listed as choice of printers? What is it and how do I use it?

As I understand it, XPS is Microsoft's attempt to come up with a PDF competitor. In otherwords it's the same idea as print to PDF, but it prints to the less compatible XPS format.
Leo
02-Jun-2011

Posted by: Bruce Snider at May 30, 2011 2:04 PM

I think you're a bit hard on print to file, Leo. I used it when i was printing many copies of a large document (like a book), for two main reasons.
1 - it takes PagePlus a relatively long time to perform the print
2 - setting all the print parameters (page range, even/odd, print quality, borderless, dup[lex, #copies) is easy to mess up
3 - (the THREE main reasons...) if I had the document open I sometimes made unintentional edits in the 2 days it took to print

Also - copy to PRN only works (for me) if my printer is connected to a parallel port, and dragging a PRN file to a printer icon also does not work for me. I just tried it again.

The only way I've found that works is to share the printer and use a DOS box to copy the PRN file to the share name of the printer. I've never tried to drag a PRN file to a shared printer.

Posted by: Phillip at May 31, 2011 10:32 AM

A .prn file should be much smaller than a .PDF file. It can be used to circunvent driver shortcomings. The file contains the actual commands the printer supports and can be executed on an operating system which does not support the attached printer. For example, some recent printers do not have Windows 98 or Windows 2000 drivers. The printers can be "installed" in machines running those operating systems but using a "lesser" driver. For example, most LaserJet can be installed as "LaserJet III". But then features of the later models will not be available. If a document is prepared in a machine with the correct driver for the printer then eMailed as .Prn to the machine that uses the "lesser" driver, it will print just as it would print in the source machine.

Posted by: Carlos R Coquet at June 5, 2011 1:11 AM
Post a comment on "What is "Print To File" used for?":





Remember Me?

(You may use HTML tags for style)

Before commenting, please...

  • READ THE ARTICLE. A comment that shows you didn't will be deleted and ignored.

  • Comment only on the article. Use the search box at the top of the page if you have a question about something else.

  • NO PERSONAL INFORMATION in the comment. No email addresses. No phone numbers. No physical addresses.

  • Anything that looks the least bit like spam will be deleted. Links to unrelated sites or links that appear to be primarily promotional will be deleted, or the comment will be deleted.

  • Don't ask me to recover lost passwords or hacked accounts. I can't. Those comments will be deleted.

  • I can't respond to every comment. And I can't vouch for the accuracy of others who do.

Please wait. Your comment is being processed ...