Coldfusion Example

Help
aWebGuy
2012-06-22
2013-05-20
  • aWebGuy
    aWebGuy
    2012-06-22

    Anyone have a success full CF example. I'm need to use Jacob to have cf9 64BIT talk to the easyPDF COM API. I've added the jacob JAR to the CF classpath and can create a Jacob object without error:

    <cfobject action="create" type="java" class="com.jacob.com.Dispatch" name="jacobDispatchObj">

    Bus I don't know what to do next.

    In CF8 32BIT this is how I could have created by easyPDF objects:

    <cfscript>
    oLoader = CreateObject("com","easyPDF.Loader.7");
    oPrinter = oLoader.LoadObject("easyPDF.Printer.7");
    oPrintJob = oPrinter.PrintJob;
    </cfscript>

    How do I do this through Jacob?