Bug 140976 assert condition off by one in ReportEngineService
The following assertion appears around line 516 in org.eclipse.birt.report.viewer\birt\WEB-INF\classes\org\eclipse\birt\report\services\ReportEngineService.java assert pageNumber > 0 && pageNumber < reportDocument.getPageCount( ); However, since page numbers start at 1 instead of 0, pageNumber could equal reportDocument.getPageCount(). So the assertion should be assert pageNumber > 0 && pageNumber <= reportDocument.getPageCount( );
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/ReportEngineService.java
* @param parameters
	 * @param svgFlag
	 * @throws IOException
	 */
	public void runAndRenderReport( HttpServletRequest request,
			IReportRunnable runnable, OutputStream outputStream, String format,
			Locale locale, Map parameters, boolean masterPage, boolean svgFlag )
			throws RemoteException
	{
		runAndRenderReport( request, runnable, outputStream, format, locale,
				parameters, masterPage, svgFlag, null, null, null );
	}
	/**
	 * Run and render a report,
	 * 
	 * @param runnable
	 * @param outputStream
	 * @param locale
	 * @param parameters
	 * @param svgFlag
	 * @param activeIds
	 * @throws IOException
	 */
	public void runAndRenderReport( HttpServletRequest request,
			IReportRunnable runnable, ByteArrayOutputStream outputStream,
			Locale locale, Map parameters, boolean masterPage, boolean svgFlag,
			List activeIds, HTMLRenderContext htmlRenderContext ) throws RemoteException
	{
		runAndRenderReport( request, runnable, outputStream,
				ParameterAccessor.PARAM_FORMAT_HTML, locale, parameters,