org.jxls.entity.Org.generate()

Here are the examples of the java api org.jxls.entity.Org.generate() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

18 Source : FormulaCopyDemo.java
with Apache License 2.0
from jxlsteam

@Test
public void test() throws ParseException, IOException {
    logger.info("Running Formula Copy demo");
    List<Org> orgs = Org.generate(3, 3);
    try (InputStream is = FormulaCopyDemo.clreplaced.getResourcereplacedtream("formula_copy_template.xls")) {
        try (OutputStream os = new FileOutputStream("target/formula_copy_output.xls")) {
            Context context = new Context();
            context.putVar("orgs", orgs);
            JxlsHelper jxlsHelper = JxlsHelper.getInstance();
            jxlsHelper.setUseFastFormulaProcessor(false);
            jxlsHelper.processTemplate(is, os, context);
        }
    }
}