Per generare un PDF, digita il seguente comando:
tabcmd get "<url-of-view>.pdf" -f "<filename>.pdf"
Sostituisci<url-of-view> con il percorso URL della vista una volta che è stata pubblicata.
Per esempio, il comando tabcmd può apparire in questo modo:
tabcmd get "/views/Wow/SummaryReports.pdf" -f "progressReport.pdf"
Se il PDF viene generato correttamente, tabcmd inserisce il file PDF "progressReport.pdf" nella directory di lavoro corrente.
In questo esempio viene utilizzato un programma shareware e-mail denominato febootimail, che offre il pieno controllo su tutti gli aspetti della generazione dei messaggi e-mail. (Vedi collegamenti correlati qui sotto.)
In questo esempio viene inviato il report di avanzamento in formato PDF generato come allegato di posta elettronica.
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 può generare file PNG, mentre febootimail può inviare messaggi di posta elettronica HTML. Il file HTML deve trovarsi nella stessa directory di febootimail.
In questo esempio viene inviata un'immagine PNG della vista del report di avanzamento generato come allegato di posta elettronica.
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"
Nota che il tag BODY è stato sostituito da un tag HTMLFILE. Poiché tabcmd è in grado di generare automaticamente un'immagine PNG, puoi fare riferimento a quell'immagine nel corpo di un modello di posta elettronica HTML come mostrato di seguito:
<html>
<head><title>Email Alert</title></head>
<body><img src="progressReport.png"></body>
</html>
Se installi febootimail e rivedi i file della guida, vedrai quanto segue:
Queste funzionalità consentono di controllare il processo di generazione e di invio di posta elettronica di Tableau. Anche molte altre applicazioni e linguaggi di scripting presentano questo tipo di supporto.
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.