Creating Word reports
In Qlik NPrinting, you can create reports based on Word templates, filled with data from your QlikView documents or Qlik Sense apps, and then export the reports as .docx, .doc, .html, or .pdf.
In this example, you will embed the data of one QlikView object and the images of two others in a Word report, and then use two QlikView variables in a heading.
You can open an existing QlikView document or create a new one with at least one connection to the QlikView document SalesDemo.qvw. You can also customize the connection to use your own .qvw file. Word reports support MultiDoc.
Create new Word report
Do the following:
- Select Reports in the Qlik NPrinting main menu, and then click Create report.
- Enter a Title for the report.Simple Word Report
- Select Word from the Type drop-down list.
- Select an app from the App drop-down list.
-
Select a Template from the options available:
- Empty template - uses an empty template
-
Default template - use the default template (only available if a default template has been set in Report settings.
- Custom - Choose a file to use as a template.
- Keep the Enabled check box selected.
-
Click Create.
If you click Cancel, the settings are deleted. If you instead want to save the report for future use, clear the Enabled check box and then click Create.
- Click Edit template to open the Template Editor.
Select QlikView objects to add as images
Do the following:
-
If you want to use a connection different than the default one, open the Connection drop-down list and select the connection. You must have created the connection and the related cache to see it here.
- Right-click the Images node, and select Add objects.
-
Select QlikView objects, for example CH186 and CH212, to be included in your template as images.
You can select multiple objects.
- Click OK.
Embed images in template
Do the following:
- If necessary, expand the Images node.
- Drag the CH186 node token onto the page, and then drag the CH212 node token onto the page.
After dragging an image onto the template, Qlik NPrinting drops a standard gray-scale image with the original object ID overlapped. You can then resize and/or move it onto the page just like in any Word document.
Add variables for heading
Do the following:
- If necessary, change the connection to the QlikView document that contains the variables that you want to use.
- Right-click Variables and select Add variables. The Select Variable window appears.
- Select the vCurrentYear and vLastYear variables from the list in the Select Variables window.
- Click OK.
Create and format heading
Do the following:
- Right-click anywhere at the top of the page, and then click Edit Header to start creating header content.
- Expand the Variables node in the left pane.
- Drag the vCurrentYear and vLastYear node tokens into the header section of the page, and then compose the heading.
- Highlight the heading, and then format it using the Word formatting tools.
- Select the Design tab.
- Click Close Header and Footer in the Close group.
Select object to add as table
Do the following:
- If necessary, change the Connection to the QlikView document that contains the entities you want.
- Right-click Tables in the left pane, and then select Add objects.
- Select the CH184 from Sales Demo in the Select Objects window.
- Click OK.
You can use QlikView objects that have calculated dimensions or null values as levels. However, you cannot nest other objects inside them, except for fields from that sheet object. Qlik Sense visualizations with calculated dimensions cannot be used as levels.
Embed table
Do the following:
- Expand the Tables node.
- Drag the CH184 node token onto an empty space on the page.
Preview and save
Do the following:
- Click Preview.
- Check the report, close it, and then edit the template again if necessary.
- Click Save and Close to save the template and close the Template Editor.