Author Topic: File name in RTF Footer  (Read 4201 times)

Owl Saver

  • EA User
  • **
  • Posts: 37
  • Karma: +0/-0
  • Never give up.
    • View Profile
File name in RTF Footer
« on: February 14, 2012, 07:20:27 am »
I have a client that wants us to generate a lot of documents from EA. We have set up RTF templates for each document. One of their needs is to include the path and document name in the footer of each document. I can put the page numbers in, but cannot find a way to put the file name in the foter. Here is what they want the footer to look like:

C:\docs\requirements\use cases\sales use cases.rtf        Page 1 of 7

Does anyone have any idea how I can add this in?

pha

  • EA User
  • **
  • Posts: 39
  • Karma: +0/-0
    • View Profile
Re: File name in RTF Footer
« Reply #1 on: February 14, 2012, 08:32:49 am »
You can try to use this RTF syntax:
{FILENAME  \p}
But I am not confident that EA will generate this correctly.

Owl Saver

  • EA User
  • **
  • Posts: 37
  • Karma: +0/-0
  • Never give up.
    • View Profile
Re: File name in RTF Footer
« Reply #2 on: February 14, 2012, 10:27:45 am »
Quote
You can try to use this RTF syntax:
{FILENAME  \p}
But I am not confident that EA will generate this correctly.

Getting closer, but still not there. I added the syntax above, but it was treated just like any other text. So, I imported a document that had the file name in the footer. Well, it looked good in that the text was now grey. But, the file name of the imported document came with it. So, it would only show that name. If only I could find the command to turn the syntax above into an RTF field, it would work.

pha

  • EA User
  • **
  • Posts: 39
  • Karma: +0/-0
    • View Profile
Re: File name in RTF Footer
« Reply #3 on: February 14, 2012, 08:19:20 pm »
You should export your rtf-template and open it by Word. To create RTF field you should press CTRL+F9 and type into { } necessary syntax. Then import this template into EA RTF generator.
But there is a problem. EA RTF generator will insert a MERGEFIELD field before FILENAME /p.
May be somebody else faced this problem :-/

upd: check Optimize for Open Office.
« Last Edit: February 14, 2012, 08:28:54 pm by 666999 »

Michael Proske

  • EA User
  • **
  • Posts: 72
  • Karma: +0/-0
    • View Profile
Re: File name in RTF Footer
« Reply #4 on: March 06, 2012, 01:32:31 am »
I think there is no way to put the information in header or footer. It is the same with other document information. I managed the problem with an word plugin that seraches and replaces constants in the text with Word fields etc. but this may not be the solution for everyone.