ReportingCloud: New MergeSettings property to remove empty lines
We just rolled out a new MergeSettings property to remove empty lines during the merge process.

We just rolled out a new MergeSettings property that can be used to remove a complete line, if this line consists of empty merge fields only.
Consider the following template segment:
The following class is our data source for the merge process:
public class Report
{
public string name { get; set; }
public string company { get; set; }
public string blank { get; set; }
}
When the merge field blank is not used (is empty), an empty blank line will be rendered:
Report report = new Report()
{
company = "Text Control, LLC",
name = "Bjoern Meyer"
};
TXTextControl.ReportingCloud.ReportingCloud rc =
new TXTextControl.ReportingCloud.ReportingCloud(
"user@domain.com",
"yourpassword",
new Uri("https://api.reporting.cloud/"));
MergeBody body = new MergeBody()
{
MergeData = report
};
List<byte[]> documents = rc.MergeDocument(body, "RemoveEmptyLines.tx", ReturnFormat.TX);
When the removeEmptyLines property is set to true, this empty line gets removed when merging the document:
MergeBody body = new MergeBody()
{
MergeData = report,
MergeSettings = new MergeSettings()
{
RemoveEmptyLines = true
}
};
Read more about the optional MergeSettings in the Web API references at:
Happy coding!
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.
Creating Templates: Typical Invoice Elements
This article shows the structure of a typical invoice template that can be used with TX Text Control and ReportingCloud.