Book a Demo

Author Topic: Setting Print Options  (Read 3064 times)

TimWash

  • EA User
  • **
  • Posts: 26
  • Karma: +0/-0
  • Bad news does not get better with age!
    • View Profile
Setting Print Options
« on: May 15, 2006, 10:30:57 pm »
Hello, I am trying to set the default paper size to Letter versus the default of A4.  I have used the File, Print Setup options and selected my printer and letter as the paper size.  Yet, when I generate an .RTF document, the Word document is saved with A4 as the paper size.  I would appreciate any help on this matter.

Tim
Tim Stevens
Programmer/Analyst
VB.NET, VB6, VBA, T-SQL, ActionScript, ColdFusion

StefanPears

  • EA User
  • **
  • Posts: 119
  • Karma: +6/-0
  • Unwissenheit schützt vor Erkenntnis nicht
    • View Profile
Re: Setting Print Options
« Reply #1 on: May 16, 2006, 07:34:20 am »
Hi Tim,

create your own template based on <basic> or one of the other given templates. Go to the "Generate RTF Documentation" frame and choose <Edit Current...>. There you select <file> <printer setup> <paper> <size>. This will be saved with your template.

payter

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
  • Han Shot First.
    • View Profile
Re: Setting Print Options
« Reply #2 on: May 16, 2006, 11:32:55 am »
I had just this same question this morning, hence my new membership.  Turns out that page layout and dimensions are all stored in the XML files in the EA/ModelPatterns folder, under where you've installed EA.  I had to experiment with the values I ultimately used, but it seems to work, so far.  "grep" [or "awk"] for "PaperSize", and you'll see values of 1 (Letter) or 9 (A4).  I've changed them all to PaperSize=1.  That's not enough, because there are document dimensions, as well.

Those attributes are DocSize.cx=815 and DocSize.cy=1063, for US Letter.  So my heavy-handed soution went something like this (Under cygwin ... I install apps on D:):

$ cd /cygdrive/d/Sparx\ Systems/EA/ModelPatterns
$ mkdir Archives
$ cp *.xml Archives
$ for this in *.xml; do
   sed -e 's;PaperSize=.;PaperSize=1' -e 's;DocSize.cx=...;DocSize.cx=815;' -e 's;DocSize.cy=1...;DocSize.cy=1063;' ${this} > /tmp/${this}
done
$ mv /tmp/*.xml .

Now, all my new projects are layed-out correctly, for me.

Oh, yes, the guys at work complained about this solution, and I somewhat agree with them.  Though the analogy was bad - one guy said it was like changing gears by replacing the gearbox.  I say that I'm just not using the clutch.

You be the judge.

Cheers,
Payter.

TimWash

  • EA User
  • **
  • Posts: 26
  • Karma: +0/-0
  • Bad news does not get better with age!
    • View Profile
Re: Setting Print Options
« Reply #3 on: May 17, 2006, 07:50:14 pm »
Thanks to you both for your comments.  I will give them a try.

Tim
Tim Stevens
Programmer/Analyst
VB.NET, VB6, VBA, T-SQL, ActionScript, ColdFusion