My requirement is as follows: I have to open a pdf file from java. But this pdf must open inside Internet Explorer.I have tried using the OleControlSite, but does not happen. My code is as follows:
comp = new Composite(shell, SWT.NONE); FormData fd2 = new FormData();<br> fd2.top = new FormAttachment(0,0);<br> fd2.left = new FormAttachment(0,0);<br> comp.setLayoutData(fd2);<br> comp.setLayou t(new FormLayout());<br> OleFrame frame = new OleFrame(comp, SWT.NONE);<br> OleControlSite oleCtrl = new OleControlSite(frame, SWT.NONE, "Shell.Explorer");<br> oleCtrl.doVerb(OLE.OLEIVERB_SHOW | OLE.OLEIVERB_OPEN );<br>
Is there anything wrong with the code. The IE does not open. Also, if it opens, how do i give the path of the pdf to be opened inside it. This is a urgent requirement for me!!!