On Wed May 10 2006 14:44, + Ollie Brady wrote: > Hi > > I am new to this api and see that in order to load an Excel document you > could use the code: > > PropertyValue[] lArgs = new PropertyValue[1]; > lArgs[0] = new PropertyValue(); > lArgs[0].Name = "DocumentService"; > lArgs[0].Value = "com.sun.star.sheet.SpreadsheetDocument"; > xDoc = xDesktop.loadComponentFromURL(url, "_default", 0, lArgs); > > But I'm at a loss as to how you load a MS Word document, as I need to do a > batch print job of Word docs. I already have the word documents in memory > so don't need to load then from a URL also..but if this is the only > mechanism available then I can write them to a temp file and then reload > them..
Hi Ollie, It is quite similar and there are many examples on http://api.openoffice.org including links to other very interesting documents. You could also ask on [email protected] and ask to be CC:ed as you may not see all replies unless you subscribe to that list by sending an email to [EMAIL PROTECTED] and reply to the confirmation request email. Please reply to [email protected] only -- CPH : openoffice.org contributor Maybe your question has been answered already? http://user-faq.openoffice.org/#FAQ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
