ZDocBuilder Developer's Guide

Download ZDocBuilder Developer's Guide

ZDocGenerator

This object is used to generate Report/Doc.


Example with xml data source

// Create an Object
ZDocGenerator obj = new ZDocGenerator();
// Generate the report using xml input
obj.generateDocument("C:\\Users\\Desktop\\financeTemplate.docx", "C:\\Users\\Desktop\\sourceData.xml", "C:\\Users\\Desktop\\output.docx");

Download Full Example



Example with json source

// Create an Object
ZDocGenerator obj = new ZDocGenerator();
// Generate the report using json input
obj.generateDocument("C:\\Users\\Desktop\\financeTemplate.docx", "C:\\Users\\Desktop\\sourceData.json", "C:\\Users\\Desktop\\output.docx");

Download Full Example