cancel
Showing results for 
Search instead for 
Did you mean: 

Trouble Removing Watermark

Former Member
0 Kudos
101

I found all the instructions on how to remove the watermark from the report viewer. I have a java application the was created outside CR4E and Eclipse. I added the below code to my JRCViewReport.java file. But I still see the watermark at the bottom of my reports. Am I doing something wrong?

package reportviewer;

/**

  • Applies to: XI Release 2.

  • Date Created: October 2005.

  • Description: This sample demonstrates how to launch a report in the thick-client

  • ReportViewerBean Java Viewer.

  • Author: CW.

*/

//Crystal Java Reporting Component (JRC) imports.

import com.crystaldecisions.reports.sdk.*;

import com.crystaldecisions.sdk.occa.report.lib.*;

import com.crystaldecisions.reports.common.engine.ConfigurationManager;

import com.crystaldecisions.reports.common.engine.Engine;

//Java Imports.

import javax.swing.*;

public class JRCViewReport {

public static void launchApplication(String strPath) {

try {

ConfigurationManager conf = Engine.getDefault ().getConfigurationManager();

conf.setProperty(ConfigurationManager.CONFIG_KEYCODE, "MyKeyCodeFromJarFile");

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

its work but you can put this key

try {

ConfigurationManager conf = Engine.getDefault ().getConfigurationManager();

conf.setProperty(ConfigurationManager.CONFIG_KEYCODE, "<keycode removed by moderator>");

try it ok

ted_ueda
Advisor
Advisor
0 Kudos

I recommend looking at the new [Crystal Reports for Eclipse Version 2|https://www.sdn.sap.com/irj/boc/crystalreports-java] - it doesn't require adding a keycode.

Sincerely,

Ted Ueda