CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 1999
    Location
    Miami, Florida
    Posts
    242

    how can I print a PRN file

    When printing, I have the option to print to a file and this creates a filename.PRN file. How can I later view and then actually print this file? I tried viewing it in netscape or wordpad, but a ton of extra characters clutter the file.

    Any response any one can give me will be greatly appreciated.


  2. #2
    Guest

    Re: how can I print a PRN file

    Well,,,, if ur printing it to a file called myprint.prn ,, this file contains printer escape sequence code(understood by printer only)

    To print it to the printer on DOS prompt write

    C:\> TYPE MYPRINT.PRN >> PRN

    (or)

    C:\>COPY MYPRINT.PRN PRN

    Regards,
    saM


  3. #3
    Join Date
    Jul 1999
    Location
    Pasadena, CA - USA
    Posts
    351

    Re: how can I print a PRN file

    Hi,

    The other post correctly states that a *.PRN file has printer control codes as well as data in it.
    The control codes depend on the printer driver you used in creating the file. One way you could get
    around that is to select the 'Generic Only' printer driver that comes with Windows. That driver only
    prints ASCII text, so you would be able to read it later in notepad or a text editor.



    Regards,

    Paul Belikian

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured