It isn't difficult to incorporate DataVision into a Java application. Instantiate a Report object and have it read the XML file and possibly a parameter value XML file, then give the report object a layout engine object (such as LaTeXLE).
Here's how you would do it:
Report report = new Report(); report.setDatabasePassword("mypassword"); report.readFile(xml_file_name); // Must be after password if (there_are_params_in_report) { // This must come after reading the report file report.readParametersFrom(param_xml_file_name); } report.setLayoutEngine(new LaTeXLE()); // ...or any other type report.run();
Finally, you must include in your classpath two JAR files that come with DataVision: DataVision.jar and MinML.jar. MinML is the XML parser written by John Wilson.