I have opened the visio from java by following code..
Display display = new Display();
Shell shell = new Shell(display);
shell.setText("Visio Example");
shell.setLayout(new FillLayout());
try {
OleFrame frame = new OleFrame(shell, SWT.NONE);
new OleClientSite(frame, SWT.NONE, "Visio.drawing");
} catch (SWTError e) {
System.out.println("Unable to open activeX control");
display.dispose();
return;
}
shell.setSize(800, 600);
shell.open();
while (!shell.isDisposed()) {
if (!display.readAndDispatch())
display.sleep();
}
display.dispose();
now the problem is that it is opening a page after taking a manual click i.e. OK
I want to directly jump on new page to draw, what enhancement in my code required to do so ?
This can be seen in image too.
thanks.