Пример #1
0
  @RequestMapping(value = "/output-report")
  public void outputReportPdf(HelloForm form) throws Exception {
    DoxBirt birt =
        new DoxBirt("/sample/hello/hello.rptdesign", "//LS-XHLE38/share/var/hello.pdf", PDF);
    birt.output("hello", "Hello, BIRT");

    form.setFileName("hello.pdf");
    downloadFile(form);
  }
Пример #2
0
  @RequestMapping(value = "/output-xls")
  public void outputReportXls(HelloForm form) throws Exception {
    DoxBirt birt =
        new DoxBirt(
            "/sample/hello/hello_xls.rptdesign",
            "//LS-XHLE38/share/var/hello.xlsx",
            XLSX_OFFICE2010);
    birt.output("hello", "Hello, BIRT");

    form.setFileName("hello.xlsx");
    downloadFile(form);
  }