![]() |
Telelogic Rhapsody (steve huntington) | ![]() |
Topic Title: Printing out Implementation in ReporterPlus Topic Summary: Created On: 15-Aug-2008 13:47 Status: Read Only |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|||
I have seen a handful of references to printing out text from the Implementation tab of operations in classes, usually involving someone asking how to do it and following up a day or two later with "Oh, I got that working" without any details of how they got it working. I'm doing some of my own poking, but I thought I would pose the question to the forum on the off chance someone can beat me to it.
|
|||
![]() |
|||
![]() |
|||
Hi Sean
Have you gone off and solved it without posting your solution? ![]() The answer is to use the "opnBody" attribute of the operation. So, if the model path is: {Model named Project}->{Project named Project}->[containedPackages]->{Package named Default}->[classes]->{Class named class_0}->[operation]->{Operation named Message_0} The attached template will output the operation body. It has been (re-)uploaded as a zip file. Hope that helps.
Edited: 19-Aug-2008 at 09:23 by Matthew Thomas |
|||
![]() |
|||
![]() |
|||
Have you gone off and solved it without posting your solution? ![]() No, I'd gotten distracted by other commitments. Thank you very much for your help. I'm not entirely happy with how the source displays as regular text, so I've been fiddling with finding ways to change the appearance of the source code. So far, the best way seems to be sticking it in a table cell, but I can't find a way to apply the formatting conditionally yet. Eh, I'll keep plugging away at it and see what I can manage. Thank you again for your help. |
|||
![]() |
|||
![]() |
|||
Hi Sean
Hope you didn't mind my minor cheek. Regarding the formatting, I agree it isn't ideal. Are you generating Word or HTML?:
HTML: have you used ReporterPLUS's style levels? By default these correspond to heading levels, but if you're producing a HTML report then you could designate a style level (e.g. 9) to a HTML style type more loosely - you just need to define the style with the formatting you want, as a non-heading style, in a CSS file. It's not ideal but if you're disciplined in your approach it works well enough. Edited: 23-Sep-2008 at 17:48 by Matthew Thomas |
|||
![]() |
|||
![]() |
|||
I have no problems with cheek. I find it's the only way to get through some work days. As it stands now, I've been going with the conditional formatting (I've become fairly good at using Search/Replace wildcards to mark up our documents). Now, if only I could find a way to split diagrams onto multiple pages...
|
|||
![]() |
|||
![]() |
|||
Hi Sean and Matthew,
in our project we also output the implementation. We do it using the opnBody attribute as Matthew pointed out. Since we want to have the source code in a Courier font, we assign in the ReporterPLUS template a special style that we have defined in the word template: In ReporterPLUS: [STYLE: SOURCE CODE]<<$opnBody>>[CR][STYLE: NORMAL] The Word template defines a style "Source code" that formats the text in CourierNew. Best regards Rodrigo |
|||
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.