Hi Renzi,
We have some sample scripts in the script library that you can refer to in order to get the script for exporting the dashboard to excel on click of a button, using JS.
https://www.dundas.com/support/developer/script-library/export/create-an-excel-export
Including an image to the excel export is a property that you can set in the following manner:
var includeImageOfEachItem = new dundas.data.SingleBooleanValue; includeImageOfEachItem.parameterId = dundas.constants.INCLUDE_ADAPTER_IMAGES_ID; includeImageOfEachItem.value = true;
You will then have to push this parameter to the export request:
exportRequest.parameterValues.push(includeImageOfEachItem);
This will include an image of all the visualizations in their respective tabs in excel export.
I hope this helps. Please let me know in case you have any queries in this.