Author Topic: Create a RTF from API  (Read 3566 times)

utkarsh

  • EA User
  • **
  • Posts: 38
  • Karma: +0/-0
    • View Profile
Create a RTF from API
« on: April 29, 2008, 05:11:42 pm »
Hi,

Is it possible to create a RTF file using API exposed by EA through code?
I will be thankful for any help for suggesting alternative ways to create a RTF file. I need to generate a rtf for a addin I am writing.

Thanks.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8083
  • Karma: +118/-20
    • View Profile
Re: Create a RTF from API
« Reply #1 on: April 30, 2008, 08:04:06 am »

utkarsh

  • EA User
  • **
  • Posts: 38
  • Karma: +0/-0
    • View Profile
Re: Create a RTF from API
« Reply #2 on: April 30, 2008, 08:42:31 pm »
Thanks for your reply.

I tried Runreport() method but the generated RTF is not according to the template specified. Can you please guide me where are the templates provided by EA are stored? How can I access them?

Thanks in advance.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8083
  • Karma: +118/-20
    • View Profile
Re: Create a RTF from API
« Reply #3 on: May 02, 2008, 08:15:43 am »
The default templates are internal to EA, the user templates are stored in your model.

I don't think that either are available to the automation interface.

Dermot

  • EA Administrator
  • EA User
  • *****
  • Posts: 591
  • Karma: +7/-0
    • View Profile
Re: Create a RTF from API
« Reply #4 on: May 02, 2008, 03:16:31 pm »
One point to note with the Automation RunReport() - it allows for both the legacy RTF report generator templates, as well as the new report templates.  If you do have templates of the same Name in both the legacy and the new, then you can run into a problem of one being generated when it not what is expected.  So check both the new and  the legacy report template names and ensure there is no mix up.

I would suggest you create a simple template of unique name and re-test your call to RunReport().