int AD_Table_ID = 100;
MQuery q = new MQuery("AD_Table");
q.addRestriction("AD_Table_ID", "<", 108);
//
MPrintFormat f = MPrintFormat.createFromTable(Env.getCtx(), AD_Table_ID);
PrintInfo i = new PrintInfo("test", AD_Table_ID, 108, 0);
i.setAD_Table_ID(AD_Table_ID);
ReportEngine re = new ReportEngine(Env.getCtx(), f, q, i);
re.layout();
/**
re.createCSV(new File("C:\\Temp\\test.csv"), ',', Language.getLanguage());
re.createHTML(new File("C:\\Temp\\test.html"), false, Language.getLanguage());