Hello World Example
Contents
[
Hide
]
A “Hello, World” example is traditionally used to introduce features of a programming language or software with a simple use case. Here is the example for LINQ Reporting Engine.
Assume that you have the Sender
class defined in your application as follows:
To produce a report containing a message of a concrete sender on its behalf, you can use a template document with the following content.
<<[s.Name]>> says: "<<[s.Message]>>."
To build a report from the template, you can use the following source code.
After the source code is executed, the template document is populated with the data about the sender, and the document becomes a ready report with the following content.
LINQ Reporting Engine says: "Hello, World."
After the report document is built, you can save it or perform any other tasks on it using Aspose.Words API in your code.