Examples of PdfReport


Examples of org.saiku.web.export.PdfReport

      @FormParam("svg") @DefaultValue("") String svg) {

    try {
      CellDataSet cs = thinQueryService.getFormattedResult(queryName, format);
      QueryResult qr = RestUtil.convert(cs);
      PdfReport pdf = new PdfReport();
      byte[] doc = pdf.pdf(qr, svg);
      return Response.ok(doc).type("application/pdf").header(
          "content-disposition",
          "attachment; filename = export.pdf").header(
          "content-length", doc.length).build();
    } catch (Exception e) {
View Full Code Here

Examples of org.saiku.web.svg.PdfReport

      @PathParam("queryname") String queryName,
      @PathParam("format") String format,
      @FormParam("svg") @DefaultValue("") String svg) {

    try {
      PdfReport pdf = new PdfReport();
      CellDataSet cs = null;
      if (StringUtils.isNotBlank(format)) {
        cs = olapQueryService.execute(queryName, format);
      } else {
        cs = olapQueryService.execute(queryName);
      }

      byte[] doc = pdf.pdf(cs, svg);
      return Response.ok(doc).type("application/pdf").header(
          "content-disposition",
          "attachment; filename = export.pdf").header(
          "content-length", doc.length).build();
    } catch (Exception e) {
View Full Code Here

Examples of org.wso2.carbon.reporting.util.types.PdfReport

        try {
            try {

                if (reportType.equals("pdf")) {
                    // used PdfReport to generate PDF report
                    PdfReport pdfReport = new PdfReport();
                    try {
                        outputStream = pdfReport.generatePdfReport(jasperPrint);
                    } catch (JRException e) {
                        throw new JRException("Failed to generate PDF format report ", e);
                    }
                } else if (reportType.equals("excel")) {
                    //use  ExcelReport to generate Excel report
View Full Code Here

Examples of org.wso2.carbon.reporting.util.types.PdfReport

        try {
            try {

                if (reportType.equals("pdf")) {
                    // used PdfReport to generate PDF report
                    PdfReport pdfReport = new PdfReport();
                    outputStream = pdfReport.generatePdfReport(jasperPrint);
                } else if (reportType.equals("excel")) {
                    //use  ExcelReport to generate Excel report
                    ExcelReport excelReport = new ExcelReport();
                    outputStream = excelReport.generateExcelReport(jasperPrint);
                } else if (reportType.equals("html")) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.