Package net.sf.jasperreports.engine.data

Examples of net.sf.jasperreports.engine.data.XlsDataSource


                    csvDataSource.setColumnNames(columnNames);
                }
                return csvDataSource;
            }
            if (res.endsWith(".xls")) {
                final XlsDataSource xlsDataSource = new XlsDataSource(resourceInputStream);
                setCommonJRDataSourceProperties(xlsDataSource);
                if (columnNames != null) {
                    xlsDataSource.setColumnNames(columnNames);
                }
                if (useFirstRowAsHeader != null) {
                    xlsDataSource.setUseFirstRowAsHeader(Boolean.parseBoolean(useFirstRowAsHeader));
                }
                return xlsDataSource;
            }
            if (res.endsWith(".xlsx")) {
                final JRXlsxDataSource jrXlsxDataSource = new JRXlsxDataSource(resourceInputStream);
View Full Code Here

TOP

Related Classes of net.sf.jasperreports.engine.data.XlsDataSource

Copyright © 2018 www.massapicom. 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.