Book a Demo

Author Topic: Landscape RTF reports  from DocumentGenerator  (Read 3967 times)

Fred Bevan

  • EA User
  • **
  • Posts: 46
  • Karma: +0/-0
    • View Profile
Landscape RTF reports  from DocumentGenerator
« on: August 25, 2011, 04:40:22 am »
Does anyone know how to specify landscape layout when creating RTF reports with scripts using the DocumentGenerator class?

All my reports come out in portrait mode even when the RTF template used specify landscape. There does not appear to be any methods of the DocumentGenerator class to change the mode.

Fred Bevan

  • EA User
  • **
  • Posts: 46
  • Karma: +0/-0
    • View Profile
Re: Landscape RTF reports  from DocumentGenerator
« Reply #1 on: August 25, 2011, 09:44:47 pm »
I have received confirmation from Sparx that this is an issue. No estimate on when it will be resolved.

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Re: Landscape RTF reports  from DocumentGenerator
« Reply #2 on: August 31, 2011, 01:44:01 pm »
In version 9 this can be made to work.
  • The previous model template in a document model MUST end with a section break (or your page layout will bleed forward (this is a bug))
  • In the model document template select Printer setup and choose Landscape
  • make the last thing in your model document template a section break to close off the landscape section
Orthogonality rules
Position and Team disestablished, thanks austerity.
Now itinerant.

Fred Bevan

  • EA User
  • **
  • Posts: 46
  • Karma: +0/-0
    • View Profile
Re: Landscape RTF reports  from DocumentGenerator
« Reply #3 on: August 31, 2011, 10:14:28 pm »
Thanks Skiwi,

Even when I follow your instructions below, I cannot produce landscape documents from a script using the DocumentElement method of the DocumentGenerator class.

Have you been able to do this?

When I submitted a support request to Sparx, here was there answer:

We have confirmed that this is an issue, the Document Generator treats all documents as being Portrait.


Fred

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Re: Landscape RTF reports  from DocumentGenerator
« Reply #4 on: September 01, 2011, 06:43:24 am »
Sorry, I misread this (not being in the automation forum).
Orthogonality rules
Position and Team disestablished, thanks austerity.
Now itinerant.