Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
src PowerQuery advanced example. Change Java version to 8 to help tools Aug 28, 2018
template Improve Dynamic resize (with vertical merging) Jul 20, 2018
DynamicResize.csproj Templater v3.1.0 May 5, 2019
Readme.md Improve Dynamic resize (with vertical merging) Jul 20, 2018
packages.config
pom.xml Templater v3.1.0 May 5, 2019
result.docx Improve Dynamic resize (with vertical merging) Jul 20, 2018

Readme.md

Dynamic resize feature

While most usage of Templater involves table with predefined columns, so that only rows are created, sometimes for unknown number of columns, it's useful to expand table both horizontally and vertically.

While styling will be more limited in that case, table style will still be respected.

Special type - String[][]

Dynamic resize works on low level API by detecting special data type: String[][] and first resizing table to appropriate size and then populating cell contents with provided data.

Streaming

Streams can be used for input/output. Output stream will be populated on ITemplaterDocument.flush() method.

Special keywords (merge-nulls)

Dynamic resize support few special keywords. merge-nulls is one of those. It can be used for merging cells which contain null values.

You can’t perform that action at this time.