Within the documents created by Microsoft Word and Microsoft Excel, you can insert information residing in the database of QualiWare and that are defined in form realized by the Form Designer. This is done through special “bookmarks” (that we will call “QualiWare Fields”); they allow automatic updating of such information at the opening of file.
QualiWare fields can be included in templates and in form’s printing, using the appropriate menu QualiWare Fields, in the Add-ins tab of the toolbar.
The modality which the QualiWare fields are inserted into the text is different between Microsoft Word and Microsoft Excel, and it is described below.
Microsoft Word
The field values are inserted into the “Document customized Property” at the time of opening the file, and within the text is inserted a reference to the property.
Clicking by the mouse’s right button on a field, choosing “enable/disable codes field” shows the code of the reference. The following image shows an example:
The position of eventually grid on the form is defined by using tables, that must have a number of columns equal to the number of columns that are configured in the form.
The first line is the header, which can be defined in the template or left blank, and if so, will be automatically updated when creating the document, containing the description of columns inserted.
Each table is associated with the corresponding grid through a bookmark consists of the prefix “GRID_”, followed by the name attributed to the grid on the form.
Microsoft Excel
Starting from version 2015.03a, QualiWare fields are identified by named cells, that QualiWare fills, at the time of opening the file, with the value of the field to which they relate. The cell name is visible in the position shown in the following picture.
The insertion position of the grids is identified by a cell whose name consists of the prefix “grid_” followed by the name attributed to the grid on the form. That cell identifies the first header cell. QualiWare will insert in the header row of the descriptions of the columns specified in the definition of the form where that line is empty. The grid data are entered on subsequent rows.
NOTE
In earlier versions “QualiWare Field” values were inserted in cells by the function PropertyValue, where VBA code was injected by QualiWare itself in the file upon creation. This entailed the need for formats that support macros (such as XLS, XLSM and XLSB).
From version 2015.03 is used uses the above-described methodology of named cells, and the files and the existing templates are changed upon first opening, giving the appropriate naming to cells that contains the call to the function Propertyvalue.