Posted 8 September 2017, 1:57 pm EST
When I calculate the pagecount with spread.GetPrintPageCount(0) , he calculates 10 pages, but when I get a preview, the pagecount is 27 pages.
On my spread is an fixed header of 16 rows and 22 columns. After removing the repeat and get a preview, the pagecount is 10 pages.
PrintInfo pi = new PrintInfo();
pi.RepeatRowStart = 0;
pi.RepeatRowEnd = 16;
pi.RepeatColStart = 1;
Is there an solution to calculate the correct number of pages. I've created a custom printform, where an option is to select "print all pages", the "selected range", but I want to expand the options with page 1 to page (ENDPage).