Book a Demo

Author Topic: How do you get the rtf from a document artifact?  (Read 4157 times)

Ethan_AUbin

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
How do you get the rtf from a document artifact?
« on: June 06, 2006, 08:03:36 am »
Hi, I'm trying to generate some custom documentation, but cannot figure out how to get the rtf from a document artifact. Could one of you EA experts post a snippet showing how its done (in vb or C#)? Thanks! - E

StefanPears

  • EA User
  • **
  • Posts: 119
  • Karma: +6/-0
  • Unwissenheit schützt vor Erkenntnis nicht
    • View Profile
Re: How do you get the rtf from a document artifac
« Reply #1 on: June 09, 2006, 06:00:36 am »
If you use the rtf generator, be sure that the option "Model Document" is switched on in your template. You'll find it in the rtf template editor on the left side under element and under package.
Using C# or VB is difficult, as the content of a document artifact is stored in a zipped format and afaik there is no get-and-unzip-method in the API.
hth Stefan

Ethan_AUbin

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: How do you get the rtf from a document artifac
« Reply #2 on: June 09, 2006, 08:07:23 am »
Thanks for the response Steve, I can't get the RTF Generator to do what I want. (Problems with the editor, cutting and pasting protected text, swapping the order of elements produced  i.e. stuff for another thread).

Quote
Using C# or VB is difficult, as the content of a document artifact is stored in a zipped format and afaik there is no get-and-unzip-method in the API.
hth Stefan

If it the normal zip file format, then I'd be willing to jump through the hoops of finding/calling an external library to zip/unzip the content.  

Sparx developers, it would be amazingly great if you added access to the RTF in the automation interface.