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
Current Date
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
-
Stephen Waldock
Re: Current Date
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
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
Print Date vs. Document Date
Is there a way to print BOTH dates in the header/footer or one in the header and the other in the footer?
- Bob Hansen
- Posts: 1516
- Joined: Sun Mar 02, 2003 8:15 pm
- Location: Salem, NH
- Contact:
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
&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
- Bob Hansen
- Posts: 1516
- Joined: Sun Mar 02, 2003 8:15 pm
- Location: Salem, NH
- Contact:
Oops.......having a bad day.......you asked:
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...
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.Is there a way to print BOTH dates in the header/footer or one in the header and the other in the 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...
- Bob Hansen
- Posts: 1516
- Joined: Sun Mar 02, 2003 8:15 pm
- Location: Salem, NH
- Contact:
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.