You can export ReqView projects to DOCX files and open them in MS Word for reading, printing or conversion to PDF.
Summary of DOCX features:
Note: Export HTML files if you need to browse links between documents or open file attachments by clicking.
Note: Exported DOCX files use specific OpenXML format features supported by MS Word but not by other text processors, such as LibreOffice.
To export a DOCX file, click File, mouseover Export and click DOCX File. In the Export DOCX dialog, choose a MS Word template, layout 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:
Choose a MS Word template to define title page, table of contents, page properties (size, orientation, headers, footers), paragraph styles, and selection of exported ReqView documents:
You can download example MS Word templates from Download Templates.
Table View:
Select a table view defining which attributes or template columns will be exported:
For more information see Table Views.
Layout:
Select layout and styling of exported data:
For more information how to customize layout see Export Using Custom Templates > Export HTML Format > HTML for DOCX Export.
You can download the default HTML templates for Book and Table layout from Export Using Custom Templates > Download Export Templates.
Options:
exportParam helper (for Custom layout).Example: Export the Software Requirements Specification (SRS) document from the Example project 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.
Note: For more examples how to customize HTML export templates for MS Word see Export Using Custom Templates > Export HTML Format > HTML for DOCX Export documentation section. There you can find for example details about export a document with attachments list, export a document with portrait and landscape page mixture, custom template with vertical text in table header,...
You can export documents to DOCX files easily using a shared export configuration storing all export options, see Export Configurations.
You can export documents to DOCX files using reqview export docx command, see Command Line > Export Documents.
You can create custom MS Word templates to export DOCX documents with a title page, table of contents, page headers, footers and paragraph styles according to your company standards.
To export data from the current ReqView project, insert the following Word content controls in your custom MS Word template:
ReqView.id – export the project identifier.ReqView.user.name – export the name of the current ReqView user.ReqView.user.email – export the email of the current ReqView user.ReqView.user.company – export the company of the current ReqView user.ReqView.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 document using the selected layout.ReqView.document.id – export the current document identifier.ReqView.document.name – export the name of the current document.ReqView.document.tableView – export the name of the table view used for export.ReqView.document.exportSection[<sectionId>] – export the section sectionId of the current document, see Export Sections.ReqView.document.docProperty[<propertyName>] – export the property propertyName of the current document, see Edit Documents > Set Document Properties.ReqView.document[<docId>] – export data from the document docId using the selected layout.ReqView.document[<docId>].name – export the name of the document docId.ReqView.document[<docId>].exportSection[<sectionId>] – export the sectionId of the document docId, see Export Sections.ReqView.document[<docId>].docProperty[<propertyName>] – export the property propertyName of the document docId, see Edit Documents > Set Document Properties.ReqView.exportParam[<parameter>] – export the value of the given custom export parameter read from the JSON file selected in the Export dialog (see Export Options) or provided by argument --params to command reqview export (see CLI).You can insert Word content controls into a custom MS Word template as follows:
ReqView.document[SRS] to export content of document SRS.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 MS Word template, double click on the page header, and insert ReqView.document.name content control as described in the previous section.
Note: 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 MS Word 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 9. For example, enable automatic numbering of section headings, adjust spaces before section headings, and insert a page break before each Heading 1 paragraph.
Note: MS Word supports automatically numbered multilevel lists up to 9 levels. Therefore will export sections below level 9 as level 9 and Word will number such section headings differently than ReqView.
You can customize the following Word styles if you select predefined Book or Table layout:
rv-attachment – name of non-image attachments (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 – document 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 custom layouts, you can define your own class names in HTML templates and customize the corresponding Word styles in Word templates, see Customize or create new styles in MS Word.
Note: Use only lowercase captions for Word styles, as exporting a ReqView document to Word converts all capital letters to lowercase.
Note: If you experience issue with larger numbers than heading text in the first heading after a section break, please explicitly specify numbering format of corresponding heading style in custom MS Word template.
Note: Vertical text in your custom MS Word template can cause missing images. In that case use for vertical text banded sidebar text area.
Example: Customize the Default MS Word Template to use bold formatting for document object IDs.
Download the Default MS Word Template: WordTemplate.docx and open it in Word.
Customize Word character style rv-id wrapping document object IDs. First, press CtrlAltShiftS to open the Styles pane. In the Styles pane, right-click rv-id in the pane and select Modify. In the Modify Style dialog, click the icon enabling bold formatting:
You can generate tables of figures using Word styles. To add such a table to your custom MS Word template, click References, click Insert Table of Figures, and then click Options:
In the Table of Figures Options dialog, check Style and select the Word style from the dropdown. For example, when using the MS Word Template With Table of Attachments choose the rv-attachment style, see section Download Templates below.
You can insert in the MS Word 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 the Software Requirements Specification (SRS) to a DOCX file containing two sections: Introduction and Requirements. The Introduction sections uses a book layout and portrait page orientation, while the Requirements section uses a table layout and landscape orientation.
In Word, open a MS Word 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. You can check section breaks in the Draft View. Then insert rich text content control ReqView.document.exportSection[Reqs] at the new page and set its orientation to landscape.
In ReqView, open the SRS document. Then select Document > Customize Attributes from the main menu. In the Document Attributes dialog, switch to the Code tab and define the exportSection attribute with values "Introduction" and "Requirements" as follows:
{ "exportSection": { "type": "enum", "name": "Export Section", "values": [ { "key": "Intro", "label": "Introduction" }, { "key": "Reqs", "label": "Requirements" } ] }}For more information see Custom Requirement Attributes > Enumeration Attributes.
In ReqView, set the exportSection attribute for each top level document section:
Create a custom template exporting different content for both sections "Introduction" and "Requirements":
<!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></html>In ReqView, select Export > DOCX File from the main menu. In the Export DOCX dialog choose Custom MS Word Template and select the MS Word template created in Steps 1-2. Then choose the Custom layout and select the HTML template created in Step 5.
Note: The next section Word Macros explains another approach for changing page orientation using a WOrd macro processing custom string marks.
MS Word templates can contain macros or Visual Basic code to manipulate further the exported data from ReqView. For instance, you can implement a macro that updates the table of contents after opening the exported document.
Example: Use a Word macro to generate the Attachments Table containing the names of all file attachments. See also Table of Figures above for explanation of an alternative approach using Word styles instead of macros.
Document_Open, which replaces attachment captions, generates the table of attachments, and updates it.See the example result on following screenshot:
Example: Export a requirements specification to DOCX and using landscape page orientation for image attachments and portrait page orientation for text. See also Document Sections above for explanation of another approach using a custom attribute instead of macros.
Download the predefined HTML / Book template WordBookExportTemplate.html.
Alter the downloaded HTML template to mark attachments by strings [[PageOrientationLandscape]] and [[PageOrientationPortrait]] processed further by a Word macro as illustrated by the following template snippet:
... [[PageOrientationLandscape]] <p class="rv-attachment"> <br><img class="attachment" src="" > </p> [[PageOrientationPortrait]] Download the MS Word Template With Macros: WordTemplate.docm.
Export a requirements specification from ReqView to DOCX using these custom Word and HTML templates.
Open the exported DOCX to run Word macro Document_Open replacing the [[PageOrientationPortrait]] and [[PageOrientationLandscape]] strings with page section and desired page orientation.
Word Templates
You can download and reuse the following MS Word templates:
Default MS Word Template: WordTemplate.docx – the predefined MS Word template, which exports a title page, table of contents, followed by content of the exported document.
MS Word Template With TOA: WordTemplateTOA.docx – extends the Default MS Word Template to demonstrate how to create a table of figures based on Word styles, see Table of Figures.
MS Word Template With Macros: WordTemplate.docm – extends the Default MS Word Template above to demonstrate how to use macros, see Word Macros.
HTML Templates for Layout:
For an example HTML template, see Export Using Custom Templates > Export HTML Format > HTML for DOCX Export.
You can download the default HTML templates for Book and Table layout from Export Using Custom Templates > Download Export Templates.








