Book a Demo

Author Topic: Automation report on a single element  (Read 3442 times)

Stefan Bolleininger

  • EA User
  • **
  • Posts: 308
  • Karma: +0/-0
    • View Profile
Automation report on a single element
« on: October 03, 2012, 09:08:38 pm »
Hi!,

i have a strange behaviour with the report automation:

i just want to report a single element with

aProject.Runreport(element.ElementGUID, "Template", "filename")

With the automation, i get "Generation failed"

BUT

when i report the same single element with Project->Documentation->RTF Report. (F8)
i get the complete correct report and the messagebox "Generation successful!".

Has anyone an idea about this behaviour?

Greetings

Stefan
Enterprise Architect in "safetycritical development" like medical device industry. My free Add-in at my Website

Dermot

  • EA Administrator
  • EA User
  • *****
  • Posts: 591
  • Karma: +7/-0
    • View Profile
Re: Automation report on a single element
« Reply #1 on: October 04, 2012, 11:30:31 am »
If you are on a recent build it would be worth while logging that using Report a Bug - see below.

As an Alternative - use DocumentElement () on:
http://www.sparxsystems.com/enterprise_architect_user_guide/9.3/automation/document_generator_interface_class.html
See the EaExample script - "Jscript - Documentation Example"