jacob-project
jacob-project copied to clipboard
JACOB is a JAVA-COM Bridge that allows you to call COM Automation components from Java. It uses JNI to make native calls to the COM libraries. JACOB runs on x86 and x64 environments supporting 32 bit...
` public static String executePowerShellCommand(String remoteComputer, String username, String password, String command) { ComThread.InitSTA(); // Initialize the COM threading model try { // Create the WMI locator object ActiveXComponent wmiLocator...
I propose this addition to the `com.jacob.com` package. It is an `Iterable` and `Stream`-able subclass of `EnumVariant`. IteratableEnumVariant class. ``` package com.jacob.com; import java.util.Iterator; import java.util.stream.Stream; import java.util.stream.StreamSupport; /** *...
The JNI part of Dispatch.invokev() allocates shared memory for the array of VARIANTS. I have determined experimentally that this is not necessary, testing about 500 different Excel APIs, having first...
WMI is a layer over COM with its own peculiarities. Not easy to use with COM directly. I have developed a thin layer over Jacob that handles WMI, consisting of...
``` /* PLEASE NOTE THE LINE: jint *jIndices = env->GetIntArrayElements(indices, NULL); which I added to replace "long idx[2] = {i,j};" from the 2D case. Not sure if this is correct....
I am searching for the Maven Coordinates of the latest JACOB release (including precompiled DLLs for Windows 64 Bit).
Some of the Item properteis in Excel VBA objects take parameters, believe it or not. The following additional method is proposed in ActiveXComponet to allow for this. Tested extensively. ````...
I need to invoke a COM server which only *partially* supports IDispatch. It works when calling from C++, but I wonder how to do the same in Java. That COM-Server...
`VT_UI16` maps naturally to Java `char` or `java.lang.Character`. It is possible to create a `Variant` of type `VT_UI2`, by passing the value 18. However that's it. You can't do anything...
Ask for help, print .docx file to physical printer by jacob (JAVA-COM Bridge) as Monochrome printing
I want to print .docx file to a physical printer by jacob. And it's work as below. ``` com.jacob jacob 1.20 ``` ``` public class JacobPrint { static void print(...