Skip to Content
Jan 31, 2020 at 08:35 PM

CrystalReportViewer.jsp generate blank page for report with parameters

206 Views Last edit Jan 31, 2020 at 08:29 PM 2 rev


we use CrystalReportViewer.jsp in our web application to render report pages. When working with reports with parameters, it requests to install Adobe Flash which is fine until Chrome is planning to drop Flash support. So we decide to upgrade to newer Crystal Report Runtime which is said to work without Adobe Flash.

After upgrade, it generates blank report pages for reports with parameters. Expected behavior is it prompts pages for choosing parameter as before. We didn't modify anything else than upgrade CR runtime

from (information below is from Manifest file)

Created-By: 1.5.0_12-b04 (Oracle Corporation)



Created-By: 25.172-b11 (Oracle Corporation)


We are still able to generates report without parameters.

Is there anything we are missing for the upgrade?



PS. This is the CrystalReportViewer.jsp which works with report with parameters but needs Adobe Flash installation.

<%@page contentType="text/html"%>

<%@page pageEncoding="UTF-8"%>

<%@page import="*"%>

<%@page import="com.crystaldecisions.reports.sdk.*" %>

<%@page import="" %>

<%@ page import =""%>

<%@ page import ="java.sql.Connection"%> <%@ page import ="java.sql.DriverManager"%>

<%@ page import = "*"%>


CrystalReportViewer viewer = new CrystalReportViewer();



viewer.setPrintMode(CrPrintMode.ACTIVEX); /

Object reportSource = session.getAttribute("reportSource");

viewer.setReportSource(reportSource); //Render the report.

StringWriter sw = new StringWriter();

ServletContext servletContext = getServletConfig().getServletContext();

viewer.processHttpRequest(request, response, servletContext, null);