java QC: 指定从QC下载的附件所存放的目录

ActiveXComponent attComponents = comp.getPropertyAsComponent("Attachments");
Filter attFilter = new Filter(attComponents);
ComList attes = attFilter.execute();

for(ActiveXComponent attComp:attes){
ActiveXComponent storage = attComp.getPropertyAsComponent("attachmentStorage");

storage.setProperty("ClientPath","指定附件存放目录");

//true:下载附件,false:不下载
attComp.invoke("load",new Variant(true));
}

你可能感兴趣的:(java)