Suppose you have a simple report preview form. To display the next page of the report, you increment the report’s startPage and re-render( ) the report through the ReportViewer object’s ref property.

function nextPage_onClick( )

   with form.reportViewer1.ref 

      endPage = ++startPage 

      render( ) 

   endwith