Skip to Content
1
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

Hi,

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)

Implementation-Version: 12.2.217.2158

to

Created-By: 25.172-b11 (Oracle Corporation)

Implementation-Version: 12.2.226.3772

We are still able to generates report without parameters.

Is there anything we are missing for the upgrade?

Thanks,

Simon

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="com.crystaldecisions.report.web.viewer.*"%>

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

<%@page import="java.io.StringWriter" %>

<%@ page import ="com.crystaldecisions.sdk.occa.report.application.ReportClientDocument"%>

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

<%@ page import = "com.gallerysystems.tms.core.report.crystal.*"%>

<%

CrystalReportViewer viewer = new CrystalReportViewer();

viewer.setOwnPage(true);

viewer.setOwnForm(true);

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);

%>