DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: right click to print a file?  (Read 7,762 times)

dbarton

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 51
right click to print a file?
« on: April 29, 2011, 09: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

  • The Gent with the White Hat
  • Honorary Member
  • Joined in 2009
  • **
  • Posts: 589
    • Coding Snacks
    • Participated in NANY Challenge Three Times
Re: right click to print a file?
« Reply #1 on: April 29, 2011, 10: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
    • Coding Snacks
Re: right click to print a file?
« Reply #2 on: April 29, 2011, 10: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
Re: right click to print a file?
« Reply #3 on: April 30, 2011, 02:11 AM »
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
  • **
  • Posts: 51
Re: right click to print a file?
« Reply #4 on: April 30, 2011, 04:50 AM »
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 30, 2011, 04:55 AM by dbarton »

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • Coding Snacks
Re: right click to print a file?
« Reply #5 on: April 30, 2011, 07:43 AM »
This may be worth a try:

http://www.softpedia.com/get/Office-tools/Other-Office-Tools/WinPrint-Piero.shtml

dbarton

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

Edvard

  • Coding Snacks Author
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 3,027
    • Participated in NANY Challenge Once
    • Coding Snacks
    • Linux User
Re: right click to print a file?
« Reply #7 on: May 09, 2011, 03:49 PM »
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.com/forum/software-discussion-support/115368-right-click-menu.html
All children left unattended will be given a mocha and a puppy.

dbarton

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 51
Re: right click to print a file?
« Reply #8 on: May 10, 2011, 03:47 AM »

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,027
    • Participated in NANY Challenge Once
    • Coding Snacks
    • Linux User
Re: right click to print a file?
« Reply #9 on: May 10, 2011, 05:59 AM »
:o
Wow, I never noticed that before.

Hm, maybe a kind email to the author is in order...
All children left unattended will be given a mocha and a puppy.

Original address: https://www.donationcoder.com/forum/index.php?topic=26589.0