how to print first page immediately of my report using visualize.js

There is five pages of my report, so to load all data it is taking 4 minutes,

is there any way that i print first page immediately using visualize.js.

kalpesh.chavda's picture
Joined: Mar 11 2015 - 11:50pm
Last seen: 6 years 5 months ago

1 Answer:

Yes Visualize.js allows you to select the page (or range of pages) you want to render, see the docs the report method properties:

http://community.jaspersoft.com/documentation/tibco-jasperreports-server...

It will be something like: 

report
        .<span style="color: rgb(0, 102, 51);">pages</span><span style="color: rgb(0, 153, 0);">(</span><span style="color: rgb(0, 0, 255);">"1"</span><span style="color: rgb(0, 153, 0);">)</span> <span style="color: rgb(102, 102, 102); font-style: italic;">// string is also allowed</span>
        .<span style="color: rgb(0, 102, 51);">run</span><span style="color: rgb(0, 153, 0);">(</span><span style="color: rgb(0, 153, 0);">)</span><span style="color: rgb(51, 153, 51);">;</span>
marianol's picture
15736
Joined: Sep 13 2011 - 8:04am
Last seen: 4 years 5 months ago
Feedback