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

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("")
        ' Sonst Liux/Mac
objMail = createUnoService("")
        End If
        ' Zugriff auf Mail-Client-Programm
        objMailClient = objMail.querySimpleMailClient()
        ' Message-Objekt erstellen
        objMessage = objMailClient.createSimpleMailMessage()
        ' Nachrichtenempfänger setzen
        ' Betreff setzen
        ' Aktuelles Dokument als Anhang
        mAttachment(0) = strDateiName
        ' 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


Liste abmelden mit E-Mail an:
Tipps zu Listenmails:
Alle E-Mails an diese Liste werden unlöschbar öffentlich archiviert


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.