ReportingCloud: Retrieve User Defined Properties from Templates
We just published an extension of the Templates/Info endpoint that returns the user defined properties of a template.

We just published an extension to the Templates/Info endpoint:
https://api.reporting.cloud/v1/templates/info
The endpoint returns information about the template including merge fields and merge blocks. Now, it returns additionally customer user defined document properties. In MS Word, these properties can be found in the Advanced Properties dialog in the file info backstage menu:
The response value is described in the following table:
Key | Value Type | Value description |
---|---|---|
templateName | String | The filename of the template in the template storage. |
userDocumentProperties | Dictionary (key, value) of user defined document properties | Contains all user defined document properties. |
mergeBlocks | List of ReportingCloud MergeBlock objects | Contains all merge blocks in the template. |
mergeFields | List of ReportingCloud MergeField objects | Contains all merge fields in the template. |
The returned JSON looks like in the following sample. The new properties can be found in the userDocumentProperties property:
{
"templateName":"sample_docx.docx",
"mergeBlocks":[
],
"mergeFields":[
],
"userDocumentProperties":{
"custom_entry2":"entry2_value",
"custom_entry1":"entry1_value"
}
}
Test this on your own and get your free trial account for ReportingCloud today.
Reporting
The Text Control Reporting Framework combines powerful reporting features with an easy-to-use, MS Word compatible word processor. Users can create documents and templates using ordinary Microsoft Word skills. The Reporting Framework is included in all .NET based TX Text Control products including ASP.NET, Windows Forms and WPF.
Related Posts
ReportingReportingCloudTrack Changes
New Endpoint: Manipulating Tracked Changes in Documents
We just rolled out a new endpoint to the ReportingCloud Web API to manipulate tracked changes in a document.
ReportingConferenceReportingCloud
Impressions from Developer Days Magdeburg 2019
This week, we exhibited at Developer Days Magdeburg 2019 and published some impressions of our booth area.
ReportingConferenceReportingCloud
See Text Control at DEVintersection, Orlando
We are exhibiting at DEVintersection in Orlando next month June 11-13, 2019 - one of the largest Microsoft focused conferences in North America.
ReportingConferenceReportingCloud
Impressions from dotnet Cologne 2019
We sponsored and exhibited at the German community conference dotnet Cologne 2019 and published some impressions of our booth area.
ReportingCloud: New MergeSettings property to remove empty lines
We just rolled out a new MergeSettings property to remove empty lines during the merge process.