Hi,

I stumbled over Services, which (so I guess) have to be created with the ServiceManager.createInstanceWithArguments(AndContext)() method.


for example:
http://api.openoffice.org/docs/common/ref/com/sun/star/mail/MailMessage.html

So the following should work:

Object[] args = new Object[4];
                        
args[0] = "[EMAIL PROTECTED]";
args[1] = "[EMAIL PROTECTED]";
args[2] = "Subject";
args[3] = new TextTransferable("Body");// a helper class from the SDK\examples\DevelopersGuide\OfficeDev\Clipboard, which implements the XTransferable interface

XMailMessage xMailMessage = (XMailMessage) UnoRuntime.queryInterface(XMailMessage.class, xMultiComponentFactory.createInstanceWithArgumentsAndContext("com.sun.star.mail.MailMessage",args,xComponentContext));

The created object is null.

Any ideas?


Regards

Peter


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to