CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Print to file

  1. #1
    Join Date
    Jul 2008
    Posts
    52

    Print to file

    If I use the Print to file option on the print dialog. How do I then print from the file that it creates?

  2. #2
    Join Date
    Apr 2002
    Location
    Michigan, USA
    Posts
    869

    Re: Print to file

    http://www.mrkent.com/forms/tools/prntofile.htm

    I tried this on my computer. Instead of using LPT1 I used the path to the network printer and it worked. I printed to a file called "printfile.prn".

    Code:
    copy c:\printfile.prn /b \\PRINTERSERVER\PRINTERNAME
    Verere testudinem! (Fear the turtle)

    Once you can accept the universe as matter expanding into nothing that is something, wearing stripes with plaid comes easy. -Albert Einstein

    Robots are trying to steal my luggage.

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