Thread: How to print directly from compile screen?

  1. #61
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    Quote Originally Posted by mcotter222 View Post
    I edited the code. Change the LPT1 to the printer your port is in, then try it again.
    Surely the PRINT command is capable of printing to the default printer? The entire purpose of a default printer is not having to specify it. What happens if you specify no "/D" whatsoever?

  2. #62
    Registered User
    Join Date
    Mar 2008
    Posts
    65
    The point of adding that was that it didn't work without it. I tryed windows command prompt, and asked for help on PRINT, and it said I needed the printer location.

  3. #63
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    Quote Originally Posted by mcotter222 View Post
    The point of adding that was that it didn't work without it. I tryed windows command prompt, and asked for help on PRINT, and it said I needed the printer location.
    I don't see where it says you need it. The parameter is enclosed in brackets, which means it is optional. I just tested it out myself, without a /D, and it works fine.

  4. #64
    Registered User
    Join Date
    Mar 2008
    Posts
    65
    My code or the command prompt? Because my code didn't work for me without the thing, and I didn't get a chance to try it with the thing yet.

  5. #65
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    Quote Originally Posted by mcotter222 View Post
    My code or the command prompt? Because my code didn't work for me without the thing, and I didn't get a chance to try it with the thing yet.
    At the command prompt. I just typed "print blah.prn" and it printed the file to my default printer.

    Invoking it through system() shouldn't change things.

  6. #66
    Registered User
    Join Date
    Mar 2008
    Posts
    65
    Interesting... It didn't work for me. Well I will see what happens when I get to a printer (should be around tomorrow).

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How does this user get screen to run under root?
    By Overworked_PhD in forum Tech Board
    Replies: 2
    Last Post: 06-28-2009, 09:31 AM
  2. merging linked lists
    By scwizzo in forum C++ Programming
    Replies: 15
    Last Post: 09-14-2008, 05:07 PM
  3. Feedback: Functional Specification Wording
    By Ragsdale85 in forum C++ Programming
    Replies: 0
    Last Post: 01-18-2006, 04:56 PM
  4. how to print a file on the screen
    By tameeyore in forum C Programming
    Replies: 4
    Last Post: 09-18-2005, 12:00 PM
  5. Print Screen
    By /\/\ E /\/ @ in forum A Brief History of Cprogramming.com
    Replies: 6
    Last Post: 08-11-2002, 05:37 PM