Um die PDF zu erstellen, geben Sie folgenden Befehl ein:
tabcmd get "<url-of-view>.pdf" -f "<filename>.pdf"
Ersetzen Sie <url-of-view> nach der Veröffentlichung der Ansicht durch ihren URL-Pfad.
Der tabcmd-Befehl könnte in etwa wie folgt lauten:
tabcmd get "/views/Wow/SummaryReports.pdf" -f "progressReport.pdf"
Nach erfolgreicher PDF-Erstellung legt tabcmd die PDF-Datei "progressReport.pdf" im aktuellen Arbeitsverzeichnis ab.
Dieses Beispiel verwendet eine E-Mail-Shareware genannt febootimail, die volle Kontrolle über alle Aspekte der E-Mail-Generierung erlaubt. (Siehe weiterführende Links unten.)
In diesem Beispiel wird der von Ihnen erstellte PDF-Fortschrittsbericht als E-Mail-Anhang gesendet.
tabcmd login -s http://tableauserver:80 -u admin -p admin
tabcmd get "/views/Wow/SummaryReports.pdf" -f "progressReport.pdf"
febootimail.exe -SMTP yourSMTPhost.yourcompany.com -TO "recipient1@yourcompany.com; recipient2@yourcompany.com;recipient3@yourcompany.com" -FROM sender@yourcompany.com -SUBJECT "Generated Tableau View - Tableau Server Automated Alert System (TSAAS)" -ATTACH " C:\Program Files\Tableau\Tableau Command Line\progressReport.pdf" -BODY " this is the text of the body"
In Tabcmd lassen sich PNG-Dateien erzeugen, und mit febootimail können HTML-E-Mails gesendet werden. Die HTML-Datei muss sich im gleichen Verzeichnis befinden wie febootimail.
In diesem Beispiel wird ein PNG-Bild des von Ihnen erstellten Fortschrittsberichts als E-Mail-Anhang gesendet.
tabcmd login -s http://tableauserver:80 -u admin -p admin
tabcmd get "/views/Wow/SummaryReports.png" -f "progressReport.png"
febootimail.exe -SMTP yourSMTPhost.yourcompany.com -TO "recipient1@yourcompany.com; recipient2@yourcompany.com;recipient3@yourcompany.com" -FROM sender@yourcompany.com -SUBJECT "Generated Tableau View - Tableau Server Automated Alert System (TSAAS)" - -HTMLFILE "emailbody.html"
Beachten Sie, dass das BODY-Tag durch ein HTMLFILE-Tag ersetzt wurde. Da tabcmd automatisch ein PNG-Bild erstellen kann, können Sie im Textkörper einer HTML-E-Mail-Vorlage auf dieses Bild verweisen, wie nachfolgend aufgezeigt:
<html>
<head><title>Email Alert</title></head>
<body><img src="progressReport.png"></body>
</html>
Hinweis zur Installation von febootimail und zu den zugehörigen Hilfedateien:
Die Funktionen ermöglichen die Steuerung der Erstellung in Tableau und des E-Mail-Prozesses. Dies wird auch von vielen anderen Anwendungen und Skriptsprachen unterstützt.
001458041

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.