...
Info |
---|
The Main Document and Repeat Blocks |
- Merge Fields Names
- Using Short Merge Fields
- Using Long Merge Fields
- Merge Field Modifiers
- Merge Field Formulas
Merge Field Names
Anchor | ||||
---|---|---|---|---|
|
...
Info |
---|
Use brackets if your column name does not conform to these rules |
...
Fieldname | Use the Fieldname modifier to insert database column headings in a document. For example, in place of the merge field | ||
---|---|---|---|
Uppercase | If a merge field includes the Uppercase modifier, all text values imported to the merge field will be displayed in uppercase. If a merge field includes both the Uppercase and Lowercase modifiers, the last will be applied. | ||
Lowercase | If a merge field includes the Lowercase modifier, all text values imported to the merge field will be displayed in lowercase. If a merge field includes both the Uppercase and Lowercase modifiers, the last will be applied. | ||
Optional | By default, if a merge field's data source name or column name is not bound to a data source in code, an error will occur. If a merge field contains the Optional modifier, and the merge field is not bound by name to a data source, WordWriter will discard the merge field in the generated document and will not throw an error.
| ||
Image | If the image modifier is present and the column of data for the merge field is either of type byte array (byte[]) or SQL BLOB, then the image will be rendered. The image modifier can take optional parameters to format the size of the image (e.g. <<Product.Image(image(1,600,600))>>. For more see Inserting an Image. | ||
Document(format) | The document modifier can be used to insert certain types of documents into docx files where format is either | ||
HtmlSnippet | This htmlSnippet modifier can be used to insert well-formed HTML snippets into the docxa DOCX file. The htmlSnippet modifier accepts a string of well formatted html snippet and inserts it into the document. To insert full HTML documents from byte arrays or through URI references use the Document modifier. |
...