You can export documents to a MS Word DOCX file for sharing, printing or conversion to PDF.
To export a DOCX file, click File, mouseover Export and click DOCX File. In the Export DOCX dialog, choose a Word template, layout and style and other options. After confirmation of the dialog, select a destination for storing the exported DOCX file.
Note: In the WebApp, the exported DOCX file is saved in the browser download folder.
Word Template:
Table View:
The last used view or the default table view is used for documents that do not define the selected table view. For more information see Table Views.
Layout:
Options:
exportParam
helper (for Custom layout).Example: Export a Software Requirements Specification (SRS) document into a Word file using the Book layout. For each SW requirement output its ID, text description, verification method, and upstream traceability links to user needs.
Warning: MS Word for Mac has a bug in displaying the exported images properly. To view the images please use the online version of MS Word.
You can export ReqView documents to DOCX files using reqview export docx
command, see Command Line > Export Documents.
The default MS Word template outputs the current document only and defines a title page, table of contents, page headers, footers and paragraph styles. You can create custom MS Word templates to export DOCX documents according to your company standards.
If you choose a custom MS Word template, then ReqView parses the selected DOCX/DOTX file and replaces Word content controls with data from the exported project.
You can insert Word content controls into a custom MS Word template as follows:
Show the Developer tab, see how.
Enable Design Mode on the Developer Tab.
Move cursor to the place in the document where you want to insert the content control.
Click on Plain Text Content Control on the Developer tab and type in a content control text:
ReqView.id
— export the project identifierReqView.user.name
— export the name of the current ReqView userReqView.user.email
— export the email of the current ReqView userReqView.user.company
— export the company of the current ReqView userReqView.date
— export the current date, e.g. "2020-02-19"ReqView.dateTime
— export the current date, e.g. "2020-02-19 16:00"ReqView.document
— export data from the current documentReqView.document.id
— export the current document identifierReqView.document.name
— export the name of the current documentReqView.document.exportSection[<sectionId>]
— export the section sectionId of the current document, see Export SectionsReqView.document[<docId>]
— export data from the document docId, for instance ReqView.document[SRS]
ReqView.document[<docId>].name
— export the name of the document docIdReqView.document[<docId>].exportSection[<sectionId>]
— export the sectionId of the document docId, see Export SectionsOptionally, set the content control title to "ReqView" by clicking on Properties on the Developer Tab.
All ReqView documents that you refer to by ReqView.document
or ReqView.document[ID]
will be exported using the selected Book, Table or Custom layout.
You can insert a ReqView content control into a page header or footer. For example, to output the name of the exported ReqView document on page headers, open the DOCX template, double click on the page header, and insert ReqView.document.name
content control as described in the previous section.
Warning: You can experience a missing images in MS Word exported document when you place an image in the Word Template header. To avoid this buggy behavior of MS Word, place a picture in the Watermark. See how to insert a picture watermark.
You can insert a Word content control also in Word document properties. For example, to set the current user company name in Company property, open the DOCX template, click File, click Info, click Properties, then choose Advanced Properties, and insert ReqView.user.company
text in the Company text field:
You can customize the standard paragraph styles for section headings Heading 1
, Heading 2
, ..., Heading 6
. For example, enable automatic numbering of section headings, adjust spaces before section headings, and insert a page break before each Heading 1 paragraph.
You can customize the following application specific paragraph styles:
rv-attachment
— attachment including images (paragraph)rv-attribute
— custom attribute name (paragraph)rv-attribute-value
— custom attribute value (paragraph)rv-column
— template column name (paragraph)rv-column-value
— template column value (paragraph)rv-comment
— comment text (paragraph)rv-id
— object identifier (character)rv-label
— custom attribute or template column label (character)rv-link
— traceability link (character)rv-link-group
— group of traceability links (paragraph)rv-text
— text description of a document object (paragraph)rv-text-deleted
— text description of a deleted document object (paragraph)For instance, set the font of document object identifiers using rv-id
character style to bold and set the font of custom attribute labels using rv-label
character style to italic.
Example: Download DOCX Template, which is the default MS Word template used by the application.
You can insert in the DOCX template content controls ReqView.document.exportSection[<sectionId>]
or ReqView.document[<docId>].exportSection[<sectionId>]
to output ReqView document sections selected in a custom HTML template using exportOption helper with "exportSection" parameter.
Example: Export document Software Requirements Specification (SRS) into a DOCX file, which contains document section Introduction using book layout and portrait page orientation and document section Requirements using table layout and landscape orientation.
In Word, open a DOCX template and insert content control ReqView.document.exportSection[Intro]
at a new page after the title page and table of contents having the portrait page orientation.
In Word, click on Breaks on the Layout tab and select Next Page to insert a section break and start a new section on the next page. Then insert content control ReqView.document.exportSection[Reqs]
at the new page and set its orientation to landscape.
In ReqView, open the exported document SRS. Then define custom enumeration attribute exportSection:
{ "exportSection": { "type": "enum", "name": "Export Section", "values": [ { "key": "Intro", "label": "Introduction" }, { "key": "Reqs", "label": "Requirements" } ] }}
In ReqView, set values of attribute exportSection for each top level document section:
Create a custom HTML template exporting different content for both sections "Intro" and "Reqs":
<!DOCTYPE html><html lang="en-US"><head> <meta charset="utf-8"> <title></title></head>
<body>
<table> <thead> <tr> <th>ID</th> <th>Description</th> <th>Rationale</th> <th>Source</th> </tr> </thead> <tbody> <tr> <td></td> <td> </td> <td></td> <td></td> </tr> </tbody></table></body>
You can download the sample export templates for exporting MS Word HTML files from Export Using Custom Templates > Download Export Templates section.
In ReqView, export the document SRS to DOCX. In the Export DOCX dialog choose Custom MS Word Template and select the DOCX template created in steps 1-2, and then choose Custom layout and select the HTML template created in step 5.