word,txt,xls,jpg java 代码装换为tip 文件 现在项目需求,如题。不知道应该从何处着手,有资料说先看看c的实现,c是把路径直接指向了传真机,自动装换。java 如何实现,或者有什么好的思路和建议,忘各位大侠指点。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 纠正下 转换为 tif 文件 package test;import com.jacob.activeX.ActiveXComponent;import com.jacob.com.ComThread;import com.jacob.com.Dispatch;import com.jacob.com.Variant;public class CdllCall { private static ActiveXComponent component; private static Dispatch dispatch; static{ System.loadLibrary("ConvertAgent"); component=new ActiveXComponent("ConvertAgent"); dispatch=component.getObject(); } public static void InitAgent() { Variant variant=Dispatch.call(dispatch,"InitAgent",new Variant("SM_ALL_TYPE")); variant.getEmpty(); } public static void PrintAgent(){ Variant variant=Dispatch.call(dispatch,"PrintAgent",new Variant("d:\\日报.doc"),new Variant("d:\\日报tif.tif")); variant.getEmpty(); } public static void CleanAgent(){ Variant variant=Dispatch.call(dispatch,"CleanAgent"); variant.getEmpty(); } public static void main(String[] args) { CdllCall.InitAgent(); CdllCall.PrintAgent(); CdllCall.CleanAgent(); }}这是调用代码,这是 异常 Caused by: com.jacob.com.ComFailException: Can't get object clsid from progid没有找到.dll 我哪里写错了么 关于hibernate4 50分!请单体测试(JUnit)高手帮我解惑! 急,急 !关于struts中JSP页面中的中文字符问题? JSP中java bean和类库 有什么区别,该如何选择 请问高手:如何跨域取得iframe中的页面元素value? session中的中文该怎么解决?谢谢 jsp页面中显示doc,ppt,xls,pdf文件 急救啊 JDK的版本与Tomcat的版本是否有联系?? 另存excel问题 如何删除文本中的html代码? 请教一个字符流的问题 EntityManager 一直为空!为何?!
package test;import com.jacob.activeX.ActiveXComponent;
import com.jacob.com.ComThread;
import com.jacob.com.Dispatch;
import com.jacob.com.Variant;public class CdllCall { private static ActiveXComponent component;
private static Dispatch dispatch;
static{
System.loadLibrary("ConvertAgent");
component=new ActiveXComponent("ConvertAgent");
dispatch=component.getObject();
}
public static void InitAgent() {
Variant variant=Dispatch.call(dispatch,"InitAgent",new Variant("SM_ALL_TYPE"));
variant.getEmpty();
}
public static void PrintAgent(){
Variant variant=Dispatch.call(dispatch,"PrintAgent",new Variant("d:\\日报.doc"),new Variant("d:\\日报tif.tif"));
variant.getEmpty();
}
public static void CleanAgent(){
Variant variant=Dispatch.call(dispatch,"CleanAgent");
variant.getEmpty();
}
public static void main(String[] args) {
CdllCall.InitAgent();
CdllCall.PrintAgent();
CdllCall.CleanAgent();
}}这是调用代码,
这是 异常 Caused by: com.jacob.com.ComFailException: Can't get object clsid from progid
没有找到.dll 我哪里写错了么