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이라는 이메일 셰어웨어를 사용합니다. (아래의 관련 링크 참조)
다음은 이메일 첨부 파일로 생성한 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.