Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


Mein Betriebssystem: Windows 7 SP3
LibreOffice: Version 4.1.1.2

Über ein Macro versuche ich eine E-Mail zu senden. 
Für den Service ‘MailMessage’ soll es laut ::com::sun::star::mail:: die Constructoren ‘create’ und 
‘createWithAttachment’ geben. 

Ich erzeuge ein Object:
   oMsg = CreateUnoService("com.sun.star.mail.MailMessage")

und rufe den Constructor Create mit Strings als Parameter auf: 
   oMsg.Create(sAddressFrom, sAddressTo, sSubject, sBody) 

Dies führt zur Fehlermeldung: 
   BASIC-Laufzeitfehler.
   Eigenschaft oder Methode nicht gefunden: Create.

Eine Überprüfung Mit .Dbg_Methods ergibt folgende Methoden:
   Methods of object 
   "com.sun.star.mail.MailMessage":
   SbxEMPTY queryInterface ( SbxOBJECT ) ; 
   SbxVOID addRecipient ( SbxSTRING ) ; 
   SbxVOID addCcRecipient ( SbxSTRING ) ; 
   SbxVOID addBccRecipient ( SbxSTRING ) ; 
   SbxARRAY getRecipients ( void ) ; 
   SbxARRAY getCcRecipients ( void ) ; 
   SbxARRAY getBccRecipients ( void ) ; 
   SbxVOID addAttachment ( SbxOBJECT ) ; 
   SbxARRAY getAttachments ( void ) ; 
   SbxARRAY getTypes ( void ) ; 
   SbxARRAY getImplementationId ( void ) 

Die beiden Constructor-Methoden fehlen!

Kann jemand helfen?

Gruß von Henning
-- 
Liste abmelden mit E-Mail an: users+unsubscribe@de.libreoffice.org
Probleme? http://de.libreoffice.org/hilfe-kontakt/mailing-listen/abmeldung-liste/
Tipps zu Listenmails: http://wiki.documentfoundation.org/Netiquette/de
Listenarchiv: http://listarchives.libreoffice.org/de/users/
Alle E-Mails an diese Liste werden unlöschbar öffentlich archiviert

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.