Hi, Using attached files retrieved by the getDocumentationResources() method is the easier solution and you can customize the included document as you want. In GenDoc2 template, you only need to call the method as follow :
[for(resourcePath:String|self.getDocumentationResources())] <include filePath='[resourcePath/]'/> [/for] You shall not define header or footer in the files to be included to avoid display problems in the final document. Regards, Aïcha De : [email protected] [mailto:[email protected]] De la part de Topcased user list where issues are discussed Envoyé : jeudi 11 avril 2013 09:53 À : [email protected] Objet : Re: [Topcased-users] Gendoc2/Richtext Hi Anne, thanks for your reply. I will try your proposal. My needs is to document Use Cases associated scenarios usign a "Full Dressed Use Case" template in order to produce a software specifications document. I tried several ways to achieve it. 1) Use the documentation field in html mode (the problem I reported). I find the html editor primitive and I didn't find a way to add new style. 2) Create a custom profile with all the fields needs and a gendoc bundle in order to extract it. I had problems with profile's property with multiplicity > 1. (I need text fields as in the documentation). The Applied Profiles Property Page gives exception when trying to edit a String[] property. I realized I have to write a custom property sheet like the Documentation tab but I was not able to find a documentation 3) Use the getDocumentationResources() in order to get the links of word document. I write the use case's scenario in a word document (I prepared a template), I link the document to the use case and I <include> the file in the gendoc2 word file. I write a bundle in order to normalize the file path. In windows I get a mix of \ and / link c:\WORKSPACE/DOC_FOLDER/uc1.docx Do you have any suggestions? Regards, Stefano On Wed, Apr 10, 2013 at 9:35 AM, Topcased user list where issues are discussed <[email protected]<mailto:[email protected]>> wrote: Hi Stefano, The problem seems to come from the styles contained in your template document. You can look at the style of the part generated in red in the generated document and get the style name (probably something like "Normal(Web)" ). Then go back to the template document and check that this style is not in red font by default. Regards, Anne -----Message d'origine----- De : [email protected]<mailto:[email protected]> [mailto:[email protected]<mailto:[email protected]>] De la part de Topcased user list where issues are discussed Envoyé : jeudi 4 avril 2013 17:32 À : [email protected]<mailto:[email protected]> Objet : [Topcased-users] Gendoc2/Richtext Hi, I'm trying to produce a word document from a model (gendoc2) I have a use case with an html documentation. I would like to see the doc in the generated word file. I use the <richText> tag I get my list of use cases, I print their names, and the documentations. For every use case (I'm looping in the package elements) I get the documentation's font in red although I set the style as normal/quote in the html editor. How can I change it? Can be changed the styles in the html editor ? Regards, Stefano -- Dr.Eng. Stefano Moratto [email protected]<mailto:[email protected]> [email protected]<mailto:[email protected]> http://www.csiat.it - Traffic Optimization Software _______________________________________________ Topcased-users mailing list [email protected]<mailto:[email protected]> http://lists.gforge.enseeiht.fr/cgi-bin/mailman/listinfo/topcased-users ________________________________ Ce message et les pièces jointes sont confidentiels et réservés à l'usage exclusif de ses destinataires. Il peut également être protégé par le secret professionnel. Si vous recevez ce message par erreur, merci d'en avertir immédiatement l'expéditeur et de le détruire. L'intégrité du message ne pouvant être assurée sur Internet, la responsabilité du groupe Atos ne pourra être engagée quant au contenu de ce message. Bien que les meilleurs efforts soient faits pour maintenir cette transmission exempte de tout virus, l'expéditeur ne donne aucune garantie à cet égard et sa responsabilité ne saurait être engagée pour tout dommage résultant d'un virus transmis. This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos group liability cannot be triggered for the message content. Although the sender endeavors to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. _______________________________________________ Topcased-users mailing list [email protected]<mailto:[email protected]> http://lists.gforge.enseeiht.fr/cgi-bin/mailman/listinfo/topcased-users -- Dr.Eng. Stefano Moratto [email protected]<mailto:[email protected]> [email protected]<mailto:[email protected]> http://www.csiat.it - Traffic Optimization Software
_______________________________________________ Topcased-users mailing list [email protected] http://lists.gforge.enseeiht.fr/cgi-bin/mailman/listinfo/topcased-users
