Package org.boris.jxll

Examples of org.boris.jxll.XLOper


        XLOper[] a = new XLOper[fi.type.types.length];
        for (int i = 0; i < a.length; i++) {
            if (i < args.length) {
                a[i] = convert(args[i]);
            } else {
                a[i] = new XLOper();
                a[i].type = XLOperType.xltypeMissing;
            }
        }
        XLOper x = addin.invoke(name, a);
        XLoper r = convert(x);
        return r;
    }
View Full Code Here


    public FunctionInformation[] getFunctions() {
        return info;
    }

    private XLOper convert(XLoper x) {
        XLOper o = new XLOper();
        if (x instanceof XLArray) {
            o.type = XLOperType.xltypeMulti;
            XLArray a = (XLArray) x;
            o.rows = a.rows;
            o.cols = a.columns;
View Full Code Here

        // Register the double arg function
        a.registerFunction(new FunctionInformation("DoubleArg", "BB"));

        // Call the double arg function
        XLOper res = a.invoke("DoubleArg", new Double(2.));

        // Display the result
        System.out.println(res.num);

        // Free the addin
View Full Code Here

            return;
        }
        double a1 = Math.round(Math.random() * 60000) / 100.;
        double a2 = Math.round(Math.random() * 4000) / 100.;
        System.out.println("Invoking TestSum(" + a1 + "," + a2 + ")");
        XLOper res = a.invoke("TestSum", new Double(a1), new Double(a2));
        System.out.println(res.num);
    }
View Full Code Here

TOP

Related Classes of org.boris.jxll.XLOper

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.