Results 1 to 3 of 3
  1. #1
    Silver Lounger
    Join Date
    Mar 2001
    Location
    Springfield, Ohio, USA
    Posts
    2,136
    Thanks
    0
    Thanked 1 Time in 1 Post

    Print to file (Word 2K)

    In Word and most other applications I can use the File, Print... menu and click the print-to-file checkbox. This creates an xxx.PRN file. What can I do with a PRN file? How can I print this file? My printer is busted, so I created a PRN file, brought it here, and am trying to print it. All efforts result in an application/file association dialog box for PRN and <img src=/S/igiveup.gif border=0 alt=igiveup width=31 height=23> --Sam
    <font face="Comic Sans MS">Sam Barrett, CACI </font face=comic>
    <small>And the things that you have heard... commit these to faithful men who will be able to teach others also. 2 Timothy 2:2</small>

  2. #2
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Print to file (Word 2K)

    Hi Sammy:

    Here's a tip I copied from WordTipsGold by Allen Wyatt (with some additional pastes):

    Printing the File
    Once the output has been sent to a file, you (or someone else) can later copy the file to the destination printer from the Windows command line by using the copy command. For instance, let's assume that you created an output file called Report.prn. You could later send this file to the printer connected to your parallel port by using the following command at the command prompt:

    copy report.prn lpt1:

    This command line syntax will work fine if your printer driver creates ASCII output. (For instance, if you use a PostScript printer driver.) If you use a different printer driver, the output file may actually contain non-ASCII characters. In this instance, you must issue the command line prompt as follows:

    copy report.prn lpt1: /b [but see below]

    The addition of the /b switch causes the file to be sent to the printer in binary format, which is required for some types of output files.As a side note, if you want to produce a print file that you can later load into a text editor (such as Notepad), then you should make sure you are printing using the generic, text-only printer driver.

    However, a correction was made:
    i.e. use the command copy

    printfile.prn /b lpt1

    "I have a comment about the command "copy printfile.prn lpt1 b/". I am a software engineer that writes firmware for printers. I use the above command a lot! I use a slightly modified command, though: copy printfile.prn /b lpt1 The 'dos 6.22' help for copy states the '/b' makes both the preceeding and following files binary. Your command will only make the lpt1 port binary, not the source file. This can be a problem with Win98 depending on how the 'Spool MSDOS print jobs' is set in 'port settings' of the printer driver properties 'Details' tab. If the source file is not binary, the copy command will insert a <LF> for every <CR> seen in the file. If the file is filled with 'binary data', as is all files made using HP printer drivers, the file will not print correctly with the /b command at the end of the file."

    Hope this helps.

  3. #3
    Silver Lounger
    Join Date
    Mar 2001
    Location
    Springfield, Ohio, USA
    Posts
    2,136
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Print to file (Word 2K)

    Thanks, Phil! I was thinking of DOS copy but was too lazy to try. Have a busted Epson at home and a working HP deskjet at school where I tried it. Needless to say what came out of the HP was very strange <img src=/S/exclamation.gif border=0 alt=exclamation width=15 height=15> Fortunately, I can install the original application at school, print it, and uninstall. Thanks for your quick answer, tho; always wondered what print-to-file did. --Sam
    <font face="Comic Sans MS">Sam Barrett, CACI </font face=comic>
    <small>And the things that you have heard... commit these to faithful men who will be able to teach others also. 2 Timothy 2:2</small>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •