Package org.boris.jxll

Examples of org.boris.jxll.Addin


    private static void registerAddin(File f,
            FunctionInformationHandler fifh,
            CompositeFunctionHandler cfh) {
        String n = f.getName().toLowerCase();
        if (n.indexOf("xlloop-") == -1 && n.endsWith("xll")) {
            Addin a = JXLL.load(f.getAbsolutePath());
            if (a == null) {
                System.out.println("Could not load addin: " + f);
                return;
            }
            AddinFunctionHandler fh = new AddinFunctionHandler(a);
View Full Code Here


import org.boris.jxll.JXLL;

public class XLLServerTest
{
    public static void main(String[] args) throws Exception {
        Addin a = JXLL.load("F:/Development/xll/XLLserverTest.xll");
        for (int i = 0; i < a.getFunctionCount(); i++) {
            String fn = a.getFunctionName(i);
            System.out.println(fn);
            System.out.println(Reflection.toString(a.getInformation(fn)));
        }
    }
View Full Code Here

{
    private static String ADDIN = "F:/Development/xll/xllsdk97/SAMPLES/ADVDLL/ADVDLL.DLL";

    public static void main(String[] args) throws Exception {
        // Load the addin
        Addin a = JXLL.load(ADDIN);

        // 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

public class JXLLExample
{
    public static void main(String[] args) throws Exception {
        System.out.println("Loading TestXLL.dll...");
        Addin a = JXLL.load("TestXLL.dll");
        if (a == null) {
            System.out.println("Failed to load addin");
            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.Addin

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.