How to hide confirmConversion dialog when open docx file with help 2003 [message #1009117] |
Thu, 14 February 2013 13:26 |
peter urvaev Messages: 1 Registered: February 2013 |
Junior Member |
|
|
I use eclipse swt in my application. It allows me open word files (doc, docx, rtf).
But I cannot hide "Confirm Conversion at Open" dialog programmaticaly when open docx file. Windows XP and Microsoft Word 2003 installed on machine.
In VBA this dialog hides when set property Application.Options.ConfirmConversions =false. Or sets property when open file: Documents.Open FileName:="file_path_name", ConfirmConversions = false. I set this property with help OleAutomation, but this doesn't work.
Bellow part of code that I use:
shell = SWT_AWT.new_Shell(SwtHelper.display, canvas);
shell.setLayout(new FillLayout());
try {
frame = new OleFrame(shell, SWT.NONE);
clientSite = new OleClientSite(frame, SWT.NONE, "Word.Document", file);
clientSite.doVerb(OLE.OLEIVERB_SHOW);
} catch (SWTException e) {
}
How I can fix it?
[Updated on: Fri, 15 February 2013 04:20] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03524 seconds