Results 1 to 8 of 8

Thread: Print to file

  1. #1
    New Lounger
    Join Date
    Sep 2002
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Print to file

    Hi
    If I print to a file within windows printing dialog - I am asked for a file name: What sort of file extension ??
    I have to give - and how what have I to do to process this file - e.g. to be print it later
    Regards from
    blueDanube

  2. #2
    Super Moderator
    Join Date
    Dec 2000
    Location
    Renton, Washington, USA
    Posts
    12,560
    Thanks
    0
    Thanked 4 Times in 4 Posts

    Re: Print to file

    Now, that depends on which printer driver you are usings.
    If you are using the Generic" driver and want to make a text file give it "txt".
    But if you you are using any "Hardware driver" and are going to print the file on another machine then you would need to use "prn"

    Now running HP Pavilion a6528p, with Win7 64 Bit OS.

  3. #3
    Lounger
    Join Date
    Mar 2002
    Location
    Quebec City, Quebec, Canada
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Print to file

    I am interested in the answer to the second part of the original question - can anyone tell me how to print the resulting .prn file ? I tried dragging it to the printer icon, but nothing happened. Is that how it is normally done ?

  4. #4
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Print to file

    I think you can use the copy command at the command prompt:

    c:>copy file.prn serverprinter

    But I haven't done it for quite a while. Needless to say, the file needs to have been created for the same type of printer you copy it to or the results will not be pretty.

  5. #5
    Lounger
    Join Date
    Mar 2002
    Location
    Quebec City, Quebec, Canada
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Print to file

    Well, with a little tweaking from memory, that got me some action at the printer at least.
    The command copy file.prn >lpt1 brought the printer to life with the following message: "The file cannot be copied onto itself. 0 files copied."

    Any thoughts ? I was sure there would be a way to do this under Windows without resorting to the DOS command line. I mean, in Office applications, there is always the option to print to file. I can't find anything in the help files to show how to print the resulting file.

  6. #6
    Plutonium Lounger Leif's Avatar
    Join Date
    Dec 2000
    Location
    U.K.
    Posts
    14,010
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Print to file

    Well, there is a way <img src=/S/smile.gif border=0 alt=smile width=15 height=15>

    Check out How to 'Print to *.PRN file, then Print out *.PRN file

    And it works!

  7. #7
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: Print to file

    I think your problem in the command is the use of the <big>></big> character in the copy command.
    You should type
    COPY FILE.PRN LPT1
    not
    COPY FILE.PRN > LPT1

    StuartR

  8. #8
    Lounger
    Join Date
    Mar 2002
    Location
    Quebec City, Quebec, Canada
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Print to file

    It sure does. Thanks a lot, Leif. It warms the heart to receive help from a perfect stranger. (Well, maybe not perfect, but you are pretty good...)
    Marvellous.

Posting Permissions

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