I tried to replicate the faqs and use a SSDocumentConverter.dll for the conversion.
I followed the steps in faqs and finally, made a class similar to math.java provided in the examples.
When i run it, it gives the following error.
Exception in
thread "main" com.jacob.com.ComFailException: Can't get object clsi
d from progid
at com.jacob.com.Dispatch.createInstance(Native Method)
at com.jacob.com.Dispatch.<init>(Dispatch.java)
at math.main(math.java:12)
I am pasting the class also.
Please help.
import com.jacob.com.*;
class math
{
public static void main(
String[] args)
{
System.runFinalizersOnExit(true);
Dispatch
test = new Dispatch("SSDocumentConverter.Math");
testEvents te = new testEvents();
DispatchEvents de = new DispatchEvents(test, te);
System.out.println(Dispatch.call(test, "PPT2HTML", new Variant("C:\\Dll\\powerpnt.ppt"), new Variant("C:\\power.html")));
Variant v = Dispatch.call(test, "PPT2HTML", new Variant("C:\\Dll\\powerpnt.ppt"), new Variant("C:\\power.html"));
}
}
class testEvents {
public void DoneAdd(Variant[] args)
{
System.out.println("DoneAdd called in java");
}
public void DoneMult(Variant[] args)
{
System.out.println("DoneMult called in java");
}
}