当前位置:编程学习 > 网站相关 >>

SWT/Jface 获取OleClientSite中progId的例子

Shell shell = new Shell();
shell.setSize(1000, 800);
Composite c = new Composite(shell, SWT.NULL);
c.setLayout(new FillLayout(org.eclipse.swt.SWT.VERTICAL));
c.setSize(800, 700);
OleFrame oleFrame = new OleFrame(c, SWT.NONE);
File file=new File("a.pdf");
OleClientSite clientSite = new OleClientSite(oleFrame, SWT.BORDER, file);
clientSite.doVerb(OLE.OLEIVERB_SHOW);
System.out.println(clientSite.getProgramID());
补充:综合编程 , 其他综合 ,
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,