topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday December 12, 2024, 1:48 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: right click to print a file?  (Read 6036 times)

dbarton

  • Supporting Member
  • Joined in 2007
  • **
  • default avatar
  • Posts: 51
    • View Profile
    • Donate to Member
right click to print a file?
« on: April 29, 2011, 04:36 PM »

I'd like a small utility to right click a text file to print it, rather than having to load up an editor each time. I'd like it to remember my preferred font and size..

Anything?

worstje

  • Honorary Member
  • Joined in 2009
  • **
  • Posts: 588
  • The Gent with the White Hat
    • View Profile
    • Donate to Member
Re: right click to print a file?
« Reply #1 on: April 29, 2011, 05:15 PM »
If you do a notepad.exe /p myfile.txt, does that print it the way you want? (You may want to configure notepad to display the stuff the way you want first, obviously.) If it does, it is trivial to add an option in a context menu to print .txt files using that command.

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • View Profile
    • Donate to Member
Re: right click to print a file?
« Reply #2 on: April 29, 2011, 05:59 PM »
On W7 if I right click a text file and hit Print, notepad prints it.  Don't know about remembering fonts etc.. as my printer is not hooked up at the moment.

But I could see it was notepad putting the job in the print queue.


cchian

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 34
    • View Profile
    • Donate to Member
Re: right click to print a file?
« Reply #3 on: April 29, 2011, 09:11 PM »
Using worstje's idea: make a batch file with the following line:  notepad.exe /p %1
Now drag the text file to the batch file and it will send it to the default printer, don't know about your preferred font and size but maybe it can be tweaked a little more.

dbarton

  • Supporting Member
  • Joined in 2007
  • **
  • default avatar
  • Posts: 51
    • View Profile
    • Donate to Member
Re: right click to print a file?
« Reply #4 on: April 29, 2011, 11:50 PM »
Nice idea, but how to configure a font in notepad just for this??
Not sure it offers that.

If I change font in notepad it remembers that new font for all instances.
« Last Edit: April 29, 2011, 11:55 PM by dbarton »

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • View Profile
    • Donate to Member
Re: right click to print a file?
« Reply #5 on: April 30, 2011, 02:43 AM »

dbarton

  • Supporting Member
  • Joined in 2007
  • **
  • default avatar
  • Posts: 51
    • View Profile
    • Donate to Member
Re: right click to print a file?
« Reply #6 on: April 30, 2011, 11:25 AM »
That does look very promising. Thanks!

Edvard

  • Coding Snacks Author
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 3,022
    • View Profile
    • Donate to Member
Re: right click to print a file?
« Reply #7 on: May 09, 2011, 10:49 AM »
Also try PrintFile:
http://www.lerup.com...printfile/descr.html

That and ContextEdit to put a link in your right-click menu:
http://www.pcmech.co...ight-click-menu.html

dbarton

  • Supporting Member
  • Joined in 2007
  • **
  • default avatar
  • Posts: 51
    • View Profile
    • Donate to Member
Re: right click to print a file?
« Reply #8 on: May 09, 2011, 10:47 PM »

This is also nice, but I don't get to set font *size*?

Edvard

  • Coding Snacks Author
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 3,022
    • View Profile
    • Donate to Member
Re: right click to print a file?
« Reply #9 on: May 10, 2011, 12:59 AM »
 :o
Wow, I never noticed that before.

Hm, maybe a kind email to the author is in order...