Author Topic: RTF Report, Update Styles and Times New Roman Font  (Read 4574 times)

Happy

  • EA User
  • **
  • Posts: 55
  • Karma: +0/-0
    • View Profile
RTF Report, Update Styles and Times New Roman Font
« on: November 10, 2010, 10:03:07 pm »
Hi,

again I am working on my templates to create the layout required by our company.

I wasn't aware of this before, but EA likes to use Times New Roman.
As we need to use a different font (Arial) for technical documentation.

I just tried to change all occurences of Times New Roman in my templates to Arial.

Unfortunately, there are still some regions in the template (i.e. set the cursor on the left border of a page and left of a Field, this is somehow always Times New Roman).

Using the Update Styles also does not work as expected. Whats more I cannot find a valuable source of documentation on how to use it and how not.

How can I get rid of Times New Roman in my documents?

How can I achieve that the generated Table of contents stays identical when refreshing with Word afterwards?

(Table of Content Layout in EA is created by Styles, I think and Word uses special Wable of Contents layouts)

Can I delete user defined styles in a template, after I have imported them via Update Styles?

Why are there two completely different formats for Project Constans Export?

Why can't I use RTF Document Properties properly with EA? (After creating a report, such properties are constantly defined and some serial letter option fields are created?)

Why is the relation between master templates and subsequent model templates so tricky? Some changes lead to completely unusable templates and the only chance ist to start all over.

Any experiences or informations are greatly welcome!

Meanwhile I will try to build my templates all over from scratch (with mixture of using Word and EA RTF Template Editor).  :'(

Happy.


Jakub Plachecki

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: RTF Report, Update Styles and Times New Roman
« Reply #1 on: December 10, 2010, 12:56:30 am »
As far as I know "update styles" uses "Normal.rtf" (located in Your EA installation folder) to bring the styles back to their defaults. If You want to have all the generated rtf report content in arial, You should edit the template, ctrl+a to mark all the content and then change the font to arial. Then save and export - it works for me.

Happy

  • EA User
  • **
  • Posts: 55
  • Karma: +0/-0
    • View Profile
Re: RTF Report, Update Styles and Times New Roman
« Reply #2 on: December 14, 2010, 07:49:26 pm »
Are you sure? What build version are you using?

As I wrote before, even when I'm "arializing"everything in the template, there is Times New Roman in the output rtf AND you can set the mouse cursor within the template editor to places where Times New Roman is active (start of a line, left to a field).

We started to live with it.

A Word macro, which changes all Times New Roman text to Arial, has deterministic output and is good for us now.

Code: [Select]
With Selection.Find
    .ClearFormatting
    .Font.Name = "Times New Roman"
    .Replacement.ClearFormatting
    .Replacement.Font.Name = "Arial"
    .Text = ""
    .Replacement.Text = ""
    .Forward = True
    .Wrap = wdFindContinue
    .Format = True
    .MatchCase = False
    .MatchWholeWord = False
    .MatchWildcards = False
    .MatchSoundsLike = False
    .MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll

Jakub Plachecki

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: RTF Report, Update Styles and Times New Roman
« Reply #3 on: December 14, 2010, 10:54:01 pm »
Build 863. Another way is to edit the styles in Word and to change the font for each style. And yes, I am sure it works for me :-) Maybe trying both (this one, and the one I wrote about before) will do the trick. Remember NOT to use "update styles", unless You have changed the styles in "Normal.rtf". Otherwise it will restore times new roman to all styles.