Package com.haulmont.yarg.formatters.impl.doc.connector

Examples of com.haulmont.yarg.formatters.impl.doc.connector.OfficeTask


            throw wrapWithReportingException("An error occurred while generating doc report.", e);
        }
    }

    protected void doCreateDocument(final ReportOutputType outputType, final OutputStream outputStream) throws NoFreePortsException {
        OfficeTask officeTask = new OfficeTask() {
            @Override
            public void processTaskInOpenOffice(OfficeResourceProvider ooResourceProvider) {
                try {
                    loadDocument(ooResourceProvider);
View Full Code Here


            throw new ReportingException("An error occurred while converting xls to pdf.", e);
        }
    }

    private void doConvertToPdf(final String convertPattern, final byte[] documentBytes, final OutputStream outputStream) throws NoFreePortsException {
        OfficeTask officeTask = new OfficeTask() {
            @Override
            public void processTaskInOpenOffice(OfficeResourceProvider ooResourceProvider) {
                try {
                    XComponent xComponent = ooResourceProvider.loadXComponent(documentBytes);
                    saveAndClose(ooResourceProvider, xComponent, outputStream, convertPattern);
View Full Code Here

TOP

Related Classes of com.haulmont.yarg.formatters.impl.doc.connector.OfficeTask

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.