Hello everybody,
I use the following piece of (basic-)code to send documents from
LibreOffice-Base via E-Mail. The code used to work in LibreOffice 3.x
but does not in LibreOffice 4.x (I've tested it on LibreOffice 4.2 and
4.3). The Problem is the document is not attached - though no error
occurs. Its simply the attachment's gone missing.
As I'm not sure where to send this (bug-) report to I mailed it to your
list.
Please write if I have to resend it somewhere else.
Thanks and regards
Here's the piece of code in question:
' ...
' Testen, ob Windows
If GetGuiType() = 1 Then
objMail =
createUnoService("com.sun.star.system.SimpleSystemMail")
' Sonst Liux/Mac
Else
objMail =
createUnoService("com.sun.star.system.SimpleCommandMail")
End If
' Zugriff auf Mail-Client-Programm
objMailClient = objMail.querySimpleMailClient()
' Message-Objekt erstellen
objMessage = objMailClient.createSimpleMailMessage()
' Nachrichtenempfänger setzen
objMessage.setRecipient(strEmailAddress)
' Betreff setzen
objMessage.setSubject(strSubject)
' Aktuelles Dokument als Anhang
mAttachment(0) = strDateiName
objMessage.setAttachement(mAttachment())
' MailClient öffnen
objMailClient.sendSimpleMailMessage(objMessage, 0)
' ...
--
KnowHow - Helmut Seidel M.A.
Softwareentwicklung - Schulung - Coaching
Gabelsbergerstraße 17 B
84034 Landshut
Telefon: (08 71) 9 66 52 30
E-Mail: info@knowhow-la.de
Internet: www.knowhow-la.de
--
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
- [de-users] Possible bug in "com.sun.star.system.SimpleCommandMail" · Helmut Seidel M.A.
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.