Hallo,
ist es möglich mit _OL_MaiLSignatureCreate eine Linie zu Zeichnen? Sprich analog einer Formart in Word?
Danke
Hallo,
ist es möglich mit _OL_MaiLSignatureCreate eine Linie zu Zeichnen? Sprich analog einer Formart in Word?
Danke
HTML Signatur und <HR>: https://wiki.selfhtml.org/wiki/HTML/Textstrukturierung/hr
Verstehe ich nicht ganz, _OL_MaiLSignatureCreate nutzt doch gar kein HTML, sondern eine Word-Instanz
Du kannst Mails aber als HTML-Code abschicken. Jeder Mailanbieter sollte das auch erkennen und den HTML-Text parsen.
Also probier es mal wie water es vorgeschlagen hat mit den entsprechenden HTML-Tags, sollte das nicht klappen musst du ggf. noch die <html><body> Tags drum setzen.
Jeder Mailanbieter sollte das auch erkennen und den HTML-Text parsen.
Vielleicht etwas OT - aber ich habe mir extra einen Mail-Client zugelegt, der HTML nicht anzeigen kann (Sylpheed), da ich den ganzen Formatierungskram in Mails nicht ausstehen kann.
Ein Mail-Body ist ein TEXT-Feld. Dabei soll es bleiben. Für alles andere gibt es Anhänge.
Ein Mail-Body ist ein TEXT-Feld. Dabei soll es bleiben. Für alles andere gibt es Anhänge.
Wird heutzutage fast nur noch verwendet, aber klappt nicht immer gut.
Das es nicht immer funktioniert sieht man daran, dass neben jedem Imagebutton oder anchor folgender Text steht:
Sollte der Klick auf das Bild nicht funktionieren, kopieren sie bitte diesen Link in Ihre Adresszeile.
Outlook legt die Signaturen als Text, RTF und HTML-Dateien ab (wo habe ich grad nicht parat).
Oder Du verwendest Word: https://msdn.microsoft.com/en-us/library/…office.11).aspx
Outlook legt die Signaturen als Text, RTF und HTML-Dateien ab (wo habe ich grad nicht parat).
Oder Du verwendest Word: https://msdn.microsoft.com/en-us/library/…office.11).aspx
Danke sehr,
mit
fügt er eine Linie ein, jedoch immer am unteren Ende des Dokuments, nicht an der Stelle wo es im Code steht.
Kann ich das spezifizieren?
Kann ich das spezifizieren?
This example adds a horizontal line above the fifth paragraph in the active document.
Vor dem Range Specifier wurde bei dem Beispiel auf msdn der Paragraph angegeben. Du musst also deine $oSelection ändern.
Ich würde statt der Selection (am Bildschirm markierter Bereich) den Rage nehmen wie er über _Word_DocRangeSet gesetzt werden kann.
Ich würde statt der Selection (am Bildschirm markierter Bereich) den Rage nehmen wie er über _Word_DocRangeSet gesetzt werden kann.
Gemäß der Anleitung kann ich so die Range genau der Selection setzen, und dann eben die Linie zeichnen:
Es passiert nur überhaupt nichts....
Entschuldigung, ich tue mich damit unheimlich schwer...
Wie bestimme ich nun die Position der Range?
Er zeichent die Linie am Anfang der Signatur.
Die Linie soll aber genau da sein, wo die Selection ist, so wie es nach der Anleitung in _OL_MailSignatureCreate steht.
Anstelle eines Textes aber eben eine Linie
Kannst Du bitte einen Screenshot posten, wie Deine Signatur aussehen soll? Dann wird es vermutlich klarer für mich
Screenie angehangen
Danke. Schaue ich mir morgen an.
So etwa:
#include <Word.au3>
$oWord = _Word_Create()
$oDoc = _Word_DocAdd($oWord)
$oSelection = $oWord.Selection
$oSelection.TypeText("Text")
$oSelection.TypeParagraph
$oSelection.InlineShapes.AddHorizontalLineStandard
$oSelection.TypeText("Text2")
$oSelection.InlineShapes.AddHorizontalLineStandard
Alles anzeigen
Hat geholfen! Vielen Dank!
Gerne