About Infinite Blue Technologies

Infinite Blue Technologies is a group of consultants providing bespoke software solutions for both the public and private sectors. Infinite Blue Technologies has worked on the Public Procurement Model of Excellence (PPME) tool which is used to collect data and assess the level of compliance and performance of public entities. The annual exercise culminates with the production of online reports for the individual entities to peruse and implement whatever recommendations included.

Problem

Although reports are available online, entities are also issued official paper copies that are signed and stamped, for archiving purposes. The assessment agency already had a Microsoft Word document format, which was used when reports were manually produced and therefore, wanted the tool to produce similarly-formatted reports.

Preview of Assessment questionnaire

Image 1:- Assessment questionnaire

Preview of Assessment report

Image 2:- Assessment report

Solution

After evaluating existing reporting tools such as BIRT, Jasper Reports, iText, and docx4java, we came to the conclusion that we need a solution that enables a finer control over document formatting, as well as requires shorter development time. This led us to evaluate and then we chose the solutions/products offered by Aspose.

We initially decided to create a pdf template of the existing Word document. The rationale being that PDF readers are ubiquitous and documents are read-only. We had a perspective that this would allow reports to be reviewed by other stakeholders before printout. At the same time, we also realized that it would be much easier to use the existing MS Word template and create merge fields to produce a final document using Aspose.Words for Java with mail merge.

Being able to create the template in Word format was a gratifying experience for the development team because it allowed us to produce a document with which we were satisfied before sending it to Aspose.Words for Java to “fill-in the spaces”.

Preview of Word template with merge fields

Image 3:- Word template with merge fields

Preview of document with chart information

Image 4:- Sample output

Our application workflow ended up being as follows:

  • Retrieve XML data from a repository
  • Compute and render charts
  • Format rest of data for Aspose Words
  • Render the final document with Aspose Words

The fully functional trial version of the product was a godsend because it enabled us to write our test code and evaluate the output before committing to a purchase.

Experience

We had a fairly smooth application development period due to the good documentation and uncomplicated API.

We discovered that most of our code involved formatting the data from the repository before passing it to Aspose.Words for Java for “MailMerge”. The actual rendering code was just a minute fraction of the overall application code.
An initial challenge was including images of graphs in the word document but after reading the online documentation, we managed to overcome that with a simple “event handler” and “<>” fields.

We also had a few tables to generate but that was also done effortlessly and the results were very satisfactory.

Sample Image handling code preview

Image 5:- Sample image handling code

Next Steps

We look forward to using other products Aspose offers in our future projects and don’t have any reservations recommending their solutions to other developers.

Summary

Aspose.Words for Java has been an excellent discovery for us and has enabled us to create a complete and well-integrated product. The simplicity of the tool coupled with its good documentation considerably reduced the effort and time to test and deliver a solution that met our client’s requirements.

John K Wilson, CTO
Infinite Blue Technologies