PDF を生成するには、次のコマンドを入力します。
tabcmd get "<url-of-view>.pdf" -f "<filename>.pdf"<url-of-view> をパブリッシュ後のビューの URL パスに置き換えます。
たとえば、tabcmd コマンドは次のように表示されることがあります。
tabcmd get "/views/Wow/SummaryReports.pdf" -f "progressReport.pdf"
PDF が正常に生成されると、tabcmd によって PDF ファイル "progressReport.pdf" が現在の作業ディレクトリに配置されます。
この例では、メール シェアウェアの febootimail を使用します。febootimail では、メール生成のすべての要素をフル コントロールすることができます。(下記の関連リンクを参照してください)。
この例では、電子メールの添付ファイルとして生成した PDF の進捗レポートを送信します。
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"
tabcmd では PNG ファイルを生成でき、febootimail では HTML 形式の電子メールを送信できます。HTML ファイルは febootimail と同じディレクトリに配置する必要があります。
この例では、電子メールの添付ファイルとして生成した、進捗レポート ビューの PNG イメージを送信します。
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"
BODY タグが HTMLFILE タグに置き換えられていることに注目してください。tabcmd では PNG イメージを自動生成できるため、HTML 電子メール テンプレートの本文でそのイメージを次のように参照できます。
<html>
<head><title>Email Alert</title></head>
<body><img src="progressReport.png"></body>
</html>
febootimail をインストールし、そのヘルプ ファイルを確認する場合は、次の点に注意してください。
これらの機能により、Tableau の生成と電子メール プロセスを制御します。他の多くのアプリケーションやスクリプト言語もこの種のサポートを行っています。
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.