Results 1 to 2 of 2
- 12-12-2008, 06:36 AM #1
Member
- Join Date
- Dec 2008
- Posts
- 2
- Rep Power
- 0
Enable save/print in PPT using OleClientSite
Hello all,
I am embedding Powerpoint in a SWT window with the code below. However, the save and print buttons in PowerPoint are greyed out and disabled. When I run PowerPoint from a shortcut on my desktop, the save and print icons are enabled. Any ideas how to enable saving and printing while PPT is in a SWT widow?
I apologize for cross posting to the SWT TIPs forum. I didn't realize it was a Tips forum until it was too late.
Thanks.Java Code:public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setLayout(new FillLayout()); OleFrame frame = new OleFrame(shell, SWT.NONE); OleClientSite clientsite; try { clientsite = new OleClientSite(frame, SWT.NONE, "PowerPoint.Slide"); shell.layout(); clientsite.doVerb(OLE.OLEIVERB_SHOW); } catch (SWTException ex) { System.out.println("Failed to create <<Power Point Document>> : " + ex.getMessage()); return; } shell.open(); while (shell != null && !shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } }
- 12-13-2008, 04:33 AM #2
Member
- Join Date
- Dec 2008
- Posts
- 2
- Rep Power
- 0
Similar Threads
-
How can i save the data Internally(auto save)
By Rama Koti Reddy in forum AWT / SwingReplies: 2Last Post: 11-01-2010, 08:31 PM -
Print the text file and print preview them
By Java Tip in forum java.awtReplies: 0Last Post: 06-22-2008, 11:04 PM -
How to save name in Array and Print saved Name
By ppkkyaw in forum New To JavaReplies: 4Last Post: 06-15-2008, 06:44 AM -
Active Content enable problem
By kasipandian in forum JavaServer Pages (JSP) and JSTLReplies: 0Last Post: 02-01-2008, 02:15 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks