...
To set a template's data source to an array, first create an object array of field values and a string array of field names:
Code Block | c# | c# |
---|---|
title | C# |
Csharp | |
//--- Create an object array of field values object[] arrValue = {"SoftArtisans", "WordWriter", "http://www.softartisans.com"}; //--- Create a string array of field names string[] arrName = {"CompanyName", "ProductName", "URL"}; | |
Code Block | vb.net | vb.net |
title | VB.NET |
Vbnet | ||
---|---|---|
|
Each merge field in the template will bind to a field name/field value pair. When creating field name and field value arrays to use as a data source, remember:
...