Dashboard-Download

Hey,

I want to download the dashboard screen in the form of PDF and have to set the size and settings explicitly. I tried the code below:

public void download() {
JavaScript page = Page.getCurrent().getJavaScript();
page.execute(“window.print();”);
}

This helps me download only 1 page of the screen and I currently have 3 pages which I need in a single file.
How can I achieve this?

Hello,

Not sure that is possible because the window.print() function uses only current page content. If you need specific data from the screens, try to take a look at Reporting add-on.