Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] ActiveX - Printing a Word document

>BTW - what other ways are there to print a Word document from within a
Java program?
Through OleAutomation, you can access all the VisualBasic commands for Word
and print that way.



                                                                                                                                                     
                      "Sharon Dagan"                                                                                                                 
                      <sharon_dagan@xxxxxxxxx         To:      platform-swt-dev@xxxxxxxxxxx                                                          
                      m>                              cc:                                                                                            
                      Sent by:                        Subject: [platform-swt-dev] ActiveX - Printing a Word document                                 
                      platform-swt-dev-admin@                                                                                                        
                      eclipse.org                                                                                                                    
                                                                                                                                                     
                                                                                                                                                     
                      04/11/2002 12:19 PM                                                                                                            
                      Please respond to                                                                                                              
                      platform-swt-dev                                                                                                               
                                                                                                                                                     
                                                                                                                                                     




Hi,

To recover from the lack of printing support in the 'In-Place' instance of
Word, I've opened the ActiveX with:

site.doVerb( OLE.OLEIVERB_OPEN );

However, I cannot seems to close the Word instance once it has been opened,
further more, although I mark the shell as minimized ( shell.setMinimized(
true ); ), Word opens up in normal mode.

BTW - what other ways are there to print a Word document from within a Java
program?

Cheers,
--
Sharon Dagan
IT Architect, Software Group
IBM Israel

e: sharon_dagan@xxxxxxxxxx
p: +972-3-9188776 m: +972-52-554776





Back to the top