How to change notepad print formats

It’s sometimes useful to use notepad to print basic text, but it also prints a header and footer by default.

It turns out that you can change the formatting, for example to output the current date and time.

Command Action
——- ————————————–

&l Left-align the characters that follow
&c Center the characters that follow
&r Right-align the characters that follow
&d Print the current date
&t Print the current time
&f Print the name of the document
&p Print the page number

Often, though, you might want the print format to be disabled by default

Goto the key HKCU\Software\Microsoft\Notepad
Then add string values “szHeader” and “szTrailer” with value “”

.

Leave a comment

Filed under Technology

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.