Book a Demo

Author Topic: "Date and Time" in RTF Template is always actual?  (Read 10335 times)

madammox

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
"Date and Time" in RTF Template is always actual?
« on: April 17, 2008, 11:34:55 pm »
Hello,

I have a question concerning the treatment of "Date and Time" fields in RTF Templates. Upon report generation, MS Word always treats these fields as actual date and time.
Is there a way to change the type of the date field to represent the generation date of the report instead? Or is there an other way to get the generation date into the template?

Regards,
Max

madammox

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: "Date and Time" in RTF Template is always actual?
« Reply #1 on: April 29, 2008, 12:47:13 am »
I found a work around:
To embed the creation date of a report (or probably any other type of MS word data field) as field into an RTF template, simply create the field outside EA in an external word document (.doc) via MS Word, mark the field there and copy it into the EA template editor. The editor realizes that it is a field and expands it according to MS Word's field definition:

friehmaen

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: "Date and Time" in RTF Template is always actu
« Reply #2 on: November 26, 2008, 01:02:01 am »
Hi,

i know this is an old post, but i have the same problem.

Is there another solution for this issue? I want to display the generation date of the document.

The Date Field always show the current date.
The workaround with "createdate" always shows the date of the creation of the template.

Thanks and regards,
khr

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: "Date and Time" in RTF Template is always actu
« Reply #3 on: November 26, 2008, 08:17:24 am »
At a guess, go into the Advanced tab in the generation dialog and check 'Overwrite document fields'.

It could be that the field EA has inserted represents the current time.  If you overwrite that field with the appropriate text it should remain as that date.

friehmaen

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: "Date and Time" in RTF Template is a
« Reply #4 on: November 27, 2008, 01:05:35 am »
Thanks for your reply, but the "Overwrite document fields" function doesn't have any effect on the date field.
Seems that it only overwrites fields like {Pkg.Name} and so on.

Looks like the RTF generator "destroys" this field. Its not possible to update it in word.

(Using EA Version 7.0.818)
« Last Edit: November 27, 2008, 01:05:53 am by khr »