In the fyiReporting-Forum I have read that following code would helpfull to give the correct actual page number. Maybe it would helpfull for you?
- Open the "Reportingcloud.Viewer"-Project
- Open the "Viewer.cs"
public int PageCurrent
{
get
{
if (_pgs == null)
return 0;
//int pc = (int) (_pgs.PageCount * (long) _vScroll.Value / (double) _vScroll.Maximum)+1;
// 2008-10-10 - In einem Forumsbeitrag würde die nachfolgende Zeile
// angepasst. Dadurch wird eine korrekte Rückgabe der
// aktuellen Seite ermöglicht
// [... + 0.5 ... hinzugefügt]
int pc = (int) (_pgs.PageCount * (long) _vScroll.Value / (double) _vScroll.Maximum + _DrawPanel.Height / (2 * this._PageWidth * Zoom))+1;
//
if (pc > _pgs.PageCount)
pc = _pgs.PageCount;
return pc;
}
Thanks for your contribution.