Changes

Jump to: navigation, search

Including Tables in a Word Merge Document

1,125 bytes added, 13:30, 26 April 2015
all fixes applied
* In the example below the first table (identified by position and referenced as table_1) is set to the records associated with the [[Entity|entity]].
[[Image:WordMergeTable.PNG|link=]]
 
===HTML Tables===
Instead of creating a table in the MS Word Merge document, you can define HTML on the MS Word Merge field that will be used to create a table in a normal bookmark on the MS Word Merge document.<br />
When defining a HTML table do not use CSS rules as they will not work. Use the old way HTML 4 table tag syntax formatting.<br />
w3schools: HTML <table> Tags list: http://www.w3schools.com/tags/tag_table.asp<br /><br />
 
 
To format text inside a table also use HTML tags like: B, I, U, FONT.<br />
w3schools: HTML Text Formatting Elements: http://www.w3schools.com/html/html_formatting.asp<br />
w3schools: HTML <font> size Attribute: http://www.w3schools.com/tags/att_font_size.asp<br /><br />
* Example:
<pre>
bookmarkname=<html>
<table width="100%" border="1" cellspacing="0" cellpadding="3">
<tr>
<th>#</th>
<th>Date</th>
<th>Details</th>
</tr>
[#(?object=activity)
<tr>
<td width="10%" align="right">~Index~</td>
<td width="40%"><!--@sscalculation(DATE_FORMAT("~startdate~","%d %M %Y"))--></td>
<td width="50%">$Activity Details$</td>
</tr>
#]
</table>
</html>;
</pre>
==See Also==
{{WordMergeLinks}}
Smartstaff
174
edits

Navigation menu