Book a Demo

Author Topic: Generating reports via script  (Read 7191 times)

max

  • EA Novice
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Generating reports via script
« on: June 22, 2021, 09:44:34 pm »
Hi,

is it possible to generate a report via script? I would like to be able to initiate a report through a project browser group script.


Regards,

Max

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Generating reports via script
« Reply #1 on: June 22, 2021, 09:57:24 pm »
Yes, you can. See Project Interface.RunReport (string PackageGUID, string TemplateName, string Filename)

https://www.sparxsystems.com/enterprise_architect_user_guide/15.2/automation/project_2.html

Geert

max

  • EA Novice
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Generating reports via script
« Reply #2 on: June 22, 2021, 10:00:23 pm »
Great, will look into that. Thanks!

Sunshine

  • EA Practitioner
  • ***
  • Posts: 1353
  • Karma: +121/-10
  • Its the results that count
    • View Profile
Re: Generating reports via script
« Reply #3 on: June 23, 2021, 11:07:03 am »
IIRC there is a an example script in local scripts called Documentation example.
Happy to help
:)

max

  • EA Novice
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Generating reports via script
« Reply #4 on: June 23, 2021, 07:54:27 pm »
Yes, you're right. I think this is the solution I was looking for. Thanks!