Products Technologies Demo Docs Blog Support Company

New Online Sample: Build your First Report

We published a new online demo that shows how to create a report including preparing data, creating a template to merging them together.

New Online Sample: Build your First Report

We just added a new interactive sample to our online demos that shows how to create your first report using TX Text Control. The idea to show the process of creating a document step by step beginning with preparing the data, creating the template to merging them together.

In the first step, JSON sample data is loaded into a JSON editor that can modified for testing purposes. Each time, data is changed in the editor, the drop-down boxes in the editor (step 2) are updated using the following code:

editor.getSession().on('change', function () {
    try {
        $("#editor").notify("Data model updated!", { className: "success" });

        var jsonData = editor.getValue();
        JSON.parse(jsonData);
        TXTextControl.loadJsonData(jsonData);
    } catch (e) {
        return false;
    }
});

Preparing data

In step 2, the editor can be used to create a template. Use it to insert static text, headers and footers and other word processing elements into the template. Using the Insert Merge Field and Insert Merge Block buttons, merge fields and blocks associated to the connected data can be added.

Preparing the template

When the template is ready, the button Merge Template can be used to merge the template with the created data. The created document is then loaded into the DocumentViewer.

Merging the document

Test this demo on your own and create your first report using TX Text Control:

Launch demo

Stay in the loop!

Subscribe to the newsletter to receive the latest updates.

Related Posts

ASP.NETReportingHTML5

Creating Your First ASP.NET Reporting Application

This tutorial shows how to use the MailMerge component in an ASP.NET Web application to merge a template with data to create an Adobe PDF document.


ASP.NETReportingGitHub

Merging Documents with RESTful Web API's

ASP.NET Web API is a framework that makes it easy to build HTTP services that reach a broad range of clients, including browsers and mobile devices. ASP.NET Web API is an ideal platform for…


ASP.NETReportingPDF

.NET C# PDF Generation Techniques: Which Method is Right for Your Project?

This article explains the distinct advantage TX Text Control offers with its true WYSIWYG (What You See Is What You Get) template system, where templates are designed visually, similar to…


ASP.NETReportingASP.NET Core

Best Practices for Mail Merge and Form Field Processing in ASP.NET Core C#…

This article provides best practices for mail merge and form field processing in ASP.NET Core C# applications using TX Text Control .NET Server. It shows how to use the Document Editor to create…


ASP.NETReportingASP.NET Core

Advantages of Flow Type Layout Reporting vs. Banded Reporting or PDF…

This article shows the advantages of flow type layout reporting compared to banded reporting or populating PDF placeholders in .NET C#. It explains the differences and the benefits of using a flow…