Optimize report preview.
We have a report that displays a number of drawings in SVG format.
The problem is, it seems as though the report is being generated twice in order to show the total number of pages in the report footer. A report of 21 pages is taking around 10 seconds to preview. I am trying to optimize it so that the preview doesn't take that long.
What can I do do to speed up the preview process?
Is it possible to know the number of pages before the report is previewed?