Menu

HOME > SUPPORT > CASE STUDIES

Case Studies

 

Overview

This is just a collection of simple, self-contained, Java examples to help developers get the feel of using ReportMill on some real problems.

Case 1 - Simple Example

This is the most basic example - just a simple command line program that creates a number of customer objects and generates a report with them.
[ReportMillTest.java]

Case 2 - Custom Functions

This example shows using some custom functions in a report. There are three different kinds - a Java bean method that takes a parameter, a custom global function that takes a parameter and a custom aggregate function.
[ReportMillTest.java]

Case 3 - Programmatically Generated Template

This example shows how to programmatically generate a document. It models a computer equipment rack and generates a one page document depicting the equipment data graphically. This essentially takes advantage of ReportMill's document objects to act as a simple PDF/Flash generator.
[RMRack.java] [RMRack.rpt] [RMRack.pdf]

Case 4 - Concat PDFs

This example shows how to conditionally add several existing PDFs to create a single composite PDF.
[RMPDFMerge.java] [RMPDFMerge.pdf] [title] [logo] [body]

Case 5 - ReportMill Listener

This example shows a basic implementation of a ReportMill.Listener and its didFillShape() callback. This example simply looks at the filled shape (aCopy) for a text field named PhoneText and sets it to red if the area code is local (in this case 212).
[ReportMillTest.java]