Bug 146352 support cancel execution for "view report ..." tool bar and menu actions.
Current "view report as HTML" and "view report as PDF" in the menu tool bar uses RunAndRender task to stream back the report output. As a result, total page count is not available when the report is being streamed back. Please change these two requests to use Run task and then render task to generate HTML or PDF, so that the total page count is calculate. preview tab could continue to use RunAndRender task, since it is for preview.
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/ReportEngineService.java
IReportRunnable runnable, String documentName, Locale locale,
			Map parameters ) throws RemoteException
	{
		runReport( request, runnable, documentName, locale, parameters, null );
	}
	/**
	 * Run report.
	 * 
	 * @param request
	 * 
	 * @param runnable
	 * @param archive
	 * @param documentName
	 * @param locale
	 * @param parameters
	 * @param displayTexts
	 * @throws RemoteException
	 */
	public void runReport( HttpServletRequest request,
			IReportRunnable runnable, String documentName, Locale locale,
			Map parameters, Map displayTexts ) throws RemoteException
	{
		assert runnable != null;
		
		IRunTask runTask = null;
		runTask = engine.createRunTask( runnable );
		runTask.setLocale( locale );
		runTask.setParameterValues( parameters );
		
		if ( displayTexts != null )