![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Export SRS to word help Topic Summary: Created On: 19-Jun-2008 22:00 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
I am trying to export a SRS to WORD with some basic formatting. But I know nothing of DXL or am I well versed enough in coding to figure it out.
What I would like to do is when I export is have my ID placed directly in front of the requirement it belongs to. I also would like the ID surrounded by <ID>. Also is there a way to pick and choose with IDs it will print. I have a T/F attribute and I would like it to not print the IDs for attributes with the "F" Any guidance is greatly appreciated. Andrew |
|
![]() |
|
![]() |
|
First of all, how do you export to Word?
The native "W" button, or some "WEXP" menu? Both tools export by default what is displayed, so the best way to choose which ID is exported is to create a DXL Layout column, displaying only "F" identifiers. Something like this: string s = probeAttr_(obj, "name of T/F Attribute") if (s=="F") display identifier obj where you have to put the actual name of your attribute between the first set of quotes. Adding surrounded "<ID>" is performed like this: string s = probeAttr_(obj, "name of T/F Attribute") if (s=="F") display "<ID>" (identifier obj) "<ID>" To display ID on the same line as requirement statement, I'm afraid there is no simple DXL trick. You could always display ID and Object Text in the same column, but then you would lose the "Paragraph Style" attribute information. If you're using WEXP, there is an advanced option, called "Join text on the left of main column", that does the trick. If not, I advise you to perform some search & replace within word after export. Something like: search for: <ID>^p replace by: <ID>^t to replace paragraph marks after "<ID>" tags by tabulations. |
|
![]() |
|
![]() |
|
I would recommend to consider working with either DocExpress or WEXP, both being additional tools for the customized export to MS Word. Both require significant effort for getting started with, DocExpress in addition requires additional money for the appropriate licenses. There is some information on WEXP available in this forum, and your local Telelogic sales person would be more than happy to sell you a copy of DocExpress. Those tools would e.g. look after the brackets around your ID. As for printing only a subset of requirements, this would be achieved by a filter applied in the module window, which is respected by the exporter.
A poor man's solution to your problem would be a view with only one layoutDXL column, where you create the <ID> and Object Text. You could export this view to Word using the built-in exporter. But then you need an additonal Word macro to remove the ":" before each line. And you have to look after the Headings yourself. And I am sure another dozen problems will pop up during the process. Regards, Peter |
|
![]() |
|
![]() |
|
I would just use a filter to select the requirements with "T" and use Eric's Layout DXL to add your <ID> bits. Swap the columns around and then export it to a plain text file (using Table layout and setting the Line Width to something greater than your largest requirement).
This way you can then paste the results from Notepad, as it won't be contained within a table and paste it into Word. If it puts too big a gap between your <ID> and requirement, you can use Crimson Editor or UltraEdit to delete the extra spaces by using Column Mode. Simon. ------------------------- Simon Haydn BSc (Hons) ![]() Requirements Controller Marshall Aerospace (UK) |
|
![]() |
|
![]() |
|
I normally export through the menus if that make a difference. File>Export>MS Office>Word.
|
|
![]() |
|
![]() |
|
Ok,
you will still need to use a filter to select the requirements you want and Eric's Layout DXL to add your <ID> bits. Then use your usual way of exporting and make sure it uses Table layout, instead of the default Book one. You can either move the columns in DOORS or Word once it's exported. Simon. ------------------------- Simon Haydn BSc (Hons) ![]() Requirements Controller Marshall Aerospace (UK) |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Export SRS to word help
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.