User Login

Help Community Login:

How to open PRN file

3 replies [Last post]
juliek's picture
juliek
Joined the Dark SideI use FirefoxI use Internet ExplorerWindows UserI donated more than $20+ to GeekDrop!STaRDoGG <3's you ;)
Joined: 12/02/2009
Posts: 51
Drops: 133
Mood: Crazy

Hi Guys,
I'm hoping I'm in the right forum here. I'm still trying to print my daughter's 1040 tax form. I had posted my dilemma under hardware. When I went to try something this morning, I found that windows could not open file that was a PRN file. So anyone got any ideas? Thanks, I appreciate the help. juliek

I Averaged: 0 | 0 votes


Read More ...





Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Gunslinger's picture
Gunslinger
Premium Member (Silver)I use FirefoxI use Internet ExplorerWindows UserI donated more than $20+ to GeekDrop!I took a bite of the AppleThe Dr. put the stem on the apple!
Joined: 12/21/2009
Posts: 153
Drops: 186
Mood: Confused
Re: how to open PRN file

A .prn file is a file that has been created using the "Print to file" option in the print dialog of a program, saving the file contents in a format that printers understand, here's how to use it:


How to Print From a PRN File

When you print to a file the program outputs whatever it would have sent to the printer you have attached to your computer to a file instead. The idea is that later you might want to send this file to a similar printer on a different computer. So, the main use for a .PRN file is to copy it to a printer in order to get the output. You can open a .PRN file in any text editor but what you'll likely see is your text surrounded by a whole bunch of "junk" which represents all the various printer codes necessary to set margins, special spacing, graphics, etc.

Printing this file successfully requires a few assumptions:

  • The two printers are identical or, at least take the exact same commands to do the exact same things.
  • The printer you want to print on is set to be the default printer for the machine it is connected to. If it's not, use the Control Panel to set the printer to be the default.
  • The printer is connected to a physical port and not via USB (read on even so; the solution to this is at the end).

For this example, we'll assume that the .PRN file is named OUTPUT.PRN and is located on a floppy disk in the A: drive. Substitute the proper path for whatever filename and drive you are using. Here are the steps...

  • Create the .PRN file on the first computer. Open the application, select print, select the proper printer, check the Print to File box, and give the file a name.
  • Copy the file to removable media so you can carry it to the second computer (or use a network to transfer the file there in a location you can later find.
  • Open a Command Prompt: Start | Programs | Accessories | Command Prompt
  • Use the CD command to navigate to the location of the file or know where it is so you can specify a path to it. Recall that in this example we're using A:\OUTPUT.PRN as the file you want to print.
  • Issue the following command: COPY A:\OUTPUT.PRN /B PRN
    This command does a binary (/B) copy of OUTPUT.PRN to the device PRN which is the system name for the default printer. A binary copy is used so nothing in the file is changed during the copy process.

Assuming the printers are the same and the output printer is the default device the file should now print. What you've basically done is to tell Windows to copy the output file to the default printer using a binary copy (i.e., don't add any carriage returns or line feeds and ignore all control codes; just passing them through as they are in the file).

If connected via USB...

If your printer is connected via USB then the above command needs to be modified as follows:

  • COPY A:\OUTPUT.PRN /B \\Computer_Name\Printer_Share_Name

To get the Computer_Name open the Control Panel and select System. In the dialog that opens select the Computer Name tab. There you will find the name associated with the computer (ignore any periods after the name if there are any). To get the Printer_Share_Name open the Control Panel and select Printers and Faxes. Select the printer you need to print to and then the Share link in the left menu. If the printer has no share name then you will need to assign one.

Shortcut: Instead of the \\Computer_Name you can use \\127.0.0.1 (every computer's local network loopback address) but you still need the printer name information (tested and confirmed on Win2k and Server2003, thanks to Brad M).

Once you have both the Computer_Name and Printer_Share_Name insert these in the command above. Note the double backslash in front of the Computer_Name and the single backslash that is between the two.

Note: If the printer is a network computer then you would substitute \\Print_Server_Name (the name of the print server on the network) for \\Computer_Name in the above.

juliek's picture
juliek
Joined the Dark SideI use FirefoxI use Internet ExplorerWindows UserI donated more than $20+ to GeekDrop!STaRDoGG <3's you ;)
Joined: 12/02/2009
Posts: 51
Drops: 133
Mood: Crazy
Re: how to open PRN file

Gunslinger,
Thank you so much for the time and effort of writing such an extensive reply. (I even understood most of it! )
No, seriously, I understand it; I'm just having a difficult time getting my printer to print anything. The error message is always "there was a problem loading page". Julie

STaRDoGG's picture
From:
Olympus
STaRDoGG
Head Mucky MuckJoined the Dark SidePremium Member (Gold)I'm a Code Monkey!The Steel CurtainI use FirefoxI use Google ChromeI use Internet ExplorerI use SafariLinux UserMac UserWindows UserI donated to GeekDrop simply because I love it!Booga Booga BoogaI took a bite of the AppleFormer Phrozen Crew MemberI'm MagicMember of VileThe Dr. put the stem on the apple!The JokerSomeone thinks you're udderly delightful!
Relationship Status:
Single & Not Looking
Joined: 01/14/2009
Posts: 2593
Drops: 3064
Mood: Energetic
Re: how to open PRN file

Hey JulieK, did ya see this post yet? Clicky

If you're sure you have the right printer selected, and it's printing a test page, but nothing sent TO it from programs, it sounds like possibly a printer driver problem, and your computer is somehow not "talking" to the printer. My first thing would be to look up the model number, probably on a sticker on it somewhere, and then go to the printer manufacturer's website and download the latest drivers, and install them. Even if you've already installed some drivers, just to be sure. Then go from there if it's still not working. If it's an older printer and you've installed the old drivers that came with it on a cd or something, and now you're using them on a newer operating system, that may be a problem, for example.


Google GeekDrop is your friend. Wink

Who's New

glrobins's picture
hady's picture
Jessica Davis's picture
Marcus A Willis's picture
Zeniff Hofman's picture
nithya's picture
CRowmAN's picture
redd993's picture
lacostefredritz's picture
jeremyhunmelton's picture
rolandonoblezayacat's picture
maymay2001's picture
Austeen Legitt's picture
JimGuth's picture
mmpaprocki's picture
facebook codes exploits tips tricks Phrozen Crew
All contents ©Copyright GeekDrop 2009-2019
TOS | Privacy Policy