Book a Demo

Author Topic: RunHTMLReport API  (Read 8276 times)

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1405
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
RunHTMLReport API
« on: June 13, 2014, 08:42:46 pm »
Hi,

I'm generating the HTML report from a Windows app using EA API's RunHTMLReport method (Project class).
Method's signature :
RunHTMLReport (string PackageGUID,  string ExportPath, string ImageFormat, string Style, string Extension)

I need to define the default diagram to be used which is not available via the API (e.g by setting the diagram's GUID).
Could this be added to the API?

thanks
Guillaume
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com


OpenIT Solutions

  • EA User
  • **
  • Posts: 555
  • Karma: +9/-1
    • View Profile
Re: RunHTMLReport API
« Reply #1 on: June 17, 2014, 12:41:09 am »
I think you can specify the default diagram in a "model document" - and pass the model documents package into the RunHTMLReport....might meet your requirement here ?

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1405
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Re: RunHTMLReport API
« Reply #2 on: June 24, 2014, 01:02:50 am »
Thanks for the tip but I'm constrained not to change the model.
I logged it as a feature request.

Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com


Guillaume

  • EA Practitioner
  • ***
  • Posts: 1405
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Re: RunHTMLReport API
« Reply #3 on: January 29, 2015, 03:27:19 am »
Any chance this could be improved in the next build?
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com


qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: RunHTMLReport API
« Reply #4 on: January 29, 2015, 08:54:12 pm »
Probabilities are always greater than zero. The problem with them is that even if they are nearly 1 they never reach 1. And (Murphies Law) you are more likely to encounter the unlikely part. So in short: No (as skiwi explained in another of your questions).

q.
« Last Edit: January 29, 2015, 09:23:44 pm by qwerty »

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1405
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Re: RunHTMLReport API
« Reply #5 on: February 27, 2015, 12:40:58 am »
In case someone comes across the same issue, I included in my tool an update of the index.htm content in order to change the default diagram after an HTML Export.

It matches the manual process below :
- open the HTML export in your browser with the default diagram that needs changing
- display the diagram that you would like to open by default
- right click in this diagram and open the frame in a new window (or right click on the diagram name from the TOC/tree) -> note the HTML file for this diagram e.g. /EARoot/EA1/EA3/EA28.htm
- update the following line from the index.htm file :
<body onload="initLoad(this,'toc.htm','./EARoot/EA1/EA2/EA2/EA18.htm')" onresize="resizePage()">
modified to :
<body onload="initLoad(this,'toc.htm','./EARoot/EA1/EA3/EA28.htm')" onresize="resizePage()">
« Last Edit: February 27, 2015, 12:41:34 am by gfuk »
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com