Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

adobe javascript e-mail versand geht nicht

New Here ,
Feb 02, 2018 Feb 02, 2018

Hallo Zusammen,

habe ein Formular mit Zwei Seiten erstellt.

Die erste Seite wird ausgedruckt

Die Zweite Seite wir entnommen und wir per E-Mail versendet.

Jetzt möchte ich dies meinen Anwendern zur Verfügung stellen.

Diese haben aber nur den Reader DC im Einsatz und dort geht es nicht.

Kann mir jemand helfen?

Hier der Javaskriptcode:

// Variable und Leeren

var Kunde = "";

var Projekt = "";

var Mailing = "";

var Loeschung = "";

var Versand = "";

var OutEMail = "";

var OutText = "";

var OutBetr = "";

var Datenloeschung ="";

// Variable Füllen

var Kunde = this.getField("NameKunden").value;

var Projekt = this.getField("ProjektNr").value;

var Versand = this.getField ("AuflieferungMailing").value;

var Mailing = this.getField("NameMailings").value;

var Loeschung = this.getField ("DatumLoeschung").value;

var OutBetr = "Die Post ging ab! Löschung am " + Loeschung;

var OutEMail = getField("EMail").value;

var OutText = "Sehr geehrte Damen und Herren,"+

"\n"+

"\n"+

"als Anhang übersenden wir Ihnen die Information zur Datenlöschung."+

"\n"+

"Ihr Mailing: " + Mailing + "\n" +

"mit der ProjektNr.: " + Projekt + "\n"+

"Auflieferung vom: " + Versand + "\n"+

"\n"+

"Grußformel"+

"\n"+

"absender";

// Schreibschutz auf Formularfelder

this.getField("NameKunden").readonly=true;

this.getField("ProjektNr").readonly=true;

this.getField("AuflieferungMailing").readonly=true;

this.getField("NameMailings").readonly=true;

this.getField("DatumLoeschung").readonly=true;

// Seite 2 entnehmen

var Datenloeschung = this.extractPages({nStart: 1});

// Versand per EMail nur Seite 2

// mailDoc-Funktion

Datenloeschung.mailDoc({

bUI: true,

cTo: OutEMail,

cSubject: OutBetr,

cMsg: OutText

} );

TOPICS
Acrobat SDK and JavaScript , Windows
653
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 02, 2018 Feb 02, 2018

You can't use this code in Reader. It's not capable of extracting a page from a PDF.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 04, 2018 Feb 04, 2018

Hallo try67

Gibt es eine andere Möglichkeit?

Zum Beispiel löschen der Seite 1?

Danke

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 05, 2018 Feb 05, 2018
LATEST

Yes, that's possible, but only if the page was spawned from a Template object.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines