Current Date

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
Kana Aditya

Current Date

Post by Kana Aditya »

Hi,

When I tried to print document with macro in header to insert current date (&D or &d), instead of current date, I got the file date (TextPad 4.4.1). I used to get current date in previous version.

Anyone have this problem?

KA
Stephen Waldock

Re: Current Date

Post by Stephen Waldock »

This is to do with the way the Printing option has been set in your Preferences.

You can set the date to be derived from either the file date or the system date.

You can change the settings for this one of two ways :-

1) Through the File->Page Setup menu. Then selecting the "Print Time" button instead of the "File Time" button. This will not change all document class type settings.

2) Through the Configure->Preferences menu.
Open the Preferences window. Open "Document Classes", and then go through all the document class types you want to change. Selecting the "Printing" option and then the "Print Time" button.


Steve
Kana Aditya

Re: Current Date

Post by Kana Aditya »

Thanks for the response. I solved that.
excalbr
Posts: 1
Joined: Fri Sep 12, 2003 7:52 pm

Print Date vs. Document Date

Post by excalbr »

Is there a way to print BOTH dates in the header/footer or one in the header and the other in the footer?
User avatar
Bob Hansen
Posts: 1516
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post by Bob Hansen »

You can modify the Header and Footer using these expressions:

&n The normal font for subsequent text.
&b A bold font for subsequent text.
&i An italic font for subsequent text.
&I A bold italic font for subsequent text.
&l Subsequent text to be left justified.
&c Subsequent text to be centered (this is the default).
&r Subsequent text to be right justified.
&d The current date in Windows short form.
&D The current date in Windows long form.
&t The current time in Windows format.
&f The filename, excluding its path.
&F The full filename, including its path.
&p The page number.
&P The total number of pages.

Note: The format of the date and time can be set using Regional Settings on Control Panel.
====================================

To make "default" values, modify the Header/Footer, do this:
Customize, Preferences, Document class
For each class choose Printing
Enter values for parameters for Header and Footer, including choice of File/Print values.

Plus you can change the current document from the "defaults" by selecting File, Page Setup, entering values into Header/Footer. Click Apply and OK.

Hope this was helpful................good luck,
Bob
User avatar
Bob Hansen
Posts: 1516
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post by Bob Hansen »

Oops.......having a bad day.......you asked:
Is there a way to print BOTH dates in the header/footer or one in the header and the other in the footer?
I answered how you could include date in BOTH header and footer. You are asking about BOTH File Date and Print Date in Header and/or Footer.

Best I can think of is to use CTRL-HOME to go to beginning of document. Edit, Insert Date/Time which will take values from system. Leave the Header/Footer defaults to use File information vs. System information. Hmmm, but that will only take care of first page, subsequent pages will only have the real Header with the File Info, the system info will not show.

Grrr......well maybe this will stimulate someone else to come up with a solution.... Let's see what happens...
User avatar
Bob Hansen
Posts: 1516
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post by Bob Hansen »

:idea: How about this?

Set normal Header or Footer default expressions to use info from File vs. system, but also include leading text phrases like:
"File Date: ", "Page: ", "Current Date: ".

Use the File, Page Setup, and manually add the current date to the header or Footer that does does not contain the date expression. Again use a leader like: Current Date:

Example, (defaults are bold, pasted value is red.):
Header:File Date: &d&l&f&r
Footer: Page:&p Current date: 9/12/03
================================

Theoritical improvement: You could make a hot-key macro to Automatically go to the end of the document, insert the date, select it and copy it to clipboard, delete it, open the page setup, and paste the current date from the clipboard, and Print. I say theoretical because I have not taken the time to test it or think it through more thoroughly.

So you end up with a single key to hit that inserts the current date along with the file date which will be there, and sends it all to the Printer.
Post Reply