What we first need to understand is that the only way to print a worksheet from a Tableau dashboard running on Tableau Server is to use the download button in the toolbar. Ok, that makes things simpler, but this is still not a single click download, users need to navigate to another page and must manually download the PDF. I am not explaining the HTML file, it is something that can be used with very less or no modification. Here is a reference link for importing webdataconnector into the dashboard.
This will create a PDF document with the view in landscape, on a standard letter page size. As our workbook only has one view, --fullpdf will output a one page pdf of our view. We could have also used --pdf to get the same results, however, if the workbook has more than one view --pdf will only export the view given. In that case --fullpdf would have multiple pages, with a different view on each page. If you're running the export command from your Tableau server you will not need to include server -s , username -u , and password -p flags.
Visit here for a complete list of commands you can use with the tabcmd command line tool. Downloading and Installing tabcmd tabcmd is installed by default on Tableau Server, but you can install tabcmd on any host.
Next we install tabcmd using dpkg and delete the debian package. Once installed accept the EULA with: tabcmd version --accepteula For the export to work you will also need the java runtime installed: sudo apt-get install openjdk Final PDF Visit here for a complete list of commands you can use with the tabcmd command line tool. For example, creating or deleting users, projects, and groups. Link to both are Tableau server and tabcmd. In this example, I will be demonstrating the solution using a dashboard published on Tableau Online.
If you have Tableau Server installed on your local device you can directly execute the script in command prompt without installing tabcmd. If you are using a shared server and the server is not installed on your local device then you will need to install tabcmd onto your local device.
Note: Make sure to save both notepad.
0コメント