Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

A new functionality was implemented for allowing a grid to be exported to a word template. This can be accessed from the grid's context menu → Word-Export.


Clicking on this opens up the Word-Export dialog. Right now, this is a copy of the Excel-Export dialog. The only required input for exporting the grid is the Word-Template field.

In order for this to work, we must first have a template defined and compiled.


If we wish to export a list of records from a grid, then we must define the template in the following format:


The simplest way to do it is to define a top-level bookmark (which is not included in any other bookmark) and a sublevel bookmark (included in the top-level one).

With the addition of dynamic dataset, the top-level bookmark can simply be named 'dsData'.


The sub-level bookmark must have the name of the temp-table being returned by the fetch request for the grid. If you already have a working grid you can check the fetch request from the dev tools:


Your bookmarks could look something like this:

 


For more info about templates & docxFactory please see the complete documentation and also this: Alternative Bookmark Name for Node Type in Word Export




  • No labels