Creating report document
Create reports on all the comments added to the document and on every change which was made to the document in the review mode:
- open the created file (Api/GetDocument);
- get the comments and review reports and save them to the global variable (ApiDocument/GetCommentsReport,
ApiDocument/GetReviewReport);
- create a table for the comments/review report and fill it in with the data from the global variable (Api/CreateParagraph,
Api/CreateTable, ApiDocument/Push,
ApiDocumentContent/GetElement, ApiParagraph/AddText,
ApiTable/GetRow, ApiTable/MergeCells,
ApiTableCell/GetContent, ApiTableRow/GetCell);
- edit text style in the table (ApiDocument/GetStyle, ApiRun/SetColor,
ApiRun/SetStrikeout).
Resulting document