PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)
Moderators:PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
Variant[] dataIn = new Variant[] { new Variant(0x800080), new Variant(0.65) };
auto.invoke(
getDispatcherId("DoVerb"),
new Variant[] {
new Variant("Documents[0]"),
new Variant("HighlightSelection"),
dataIn,
new Variant(),
new Variant(0)
});
Unfortunately no one in our team has enough knowledge in Java and SWT, to directly help you solve your problem.
We ran a simple example test with String[] and String arguments in a Variant[] and it didn't even want to compile, so we do believe the problem is with trying to mix array and non-aray elements.
Please let us know if you find a solution/workaround on this.
Thanks Stefan for looking into this.
It basically comes down to how to create "SafeArray" as input in Java/SWT.
I know there are some users in this forum, who are dealing with Java/SWT for this Viewer SDK.
Could anyone please help me out here?
Args.invoke(getDispId(Args,"Add"),
new Variant[]{
new Variant("SomeString")}); // Add string
Args.invoke(getDispId(Args,"Add"),
new Variant[]{
new Variant(12345)}); // Add integer
Then you will be able to pass this array to DoVerb function
That's wonderful! You guys rock!
By the way, I see that you have new version (v.2.042.6) released today. Is this API for SafeArray included in this version? Or, is it going to be included in the next release?