com.crystaldecisions.report.web.viewer
Class CrPrintMode

java.lang.Object
  extended bycom.crystaldecisions.report.web.viewer.CrPrintMode

public final class CrPrintMode
extends java.lang.Object

This class contains constants that specify the type of printing the viewer will use when the user clicks on the print button.

The print mode can be set by passing a CrPrintMode object to the CrystalReportViewer class' setPrintMode method for a specific JSP. You can also set the print mode as a context parameter in web.xml to apply the setting across the web application. The tag name is crystal_print_mode and its possible values are:

In the situation that the print mode is set through both the web.xml file and the viewer, the viewer specified print mode value will take precedence.


Field Summary
static CrPrintMode ACTIVEX
          Specifies ActiveX print mode.
static CrPrintMode PDF
          Specifies PDF print mode.
 
Method Summary
static CrPrintMode fromString(java.lang.String mode)
           Converts the strings "PDF" and "ActiveX" to a CrPrintMode object.
 java.lang.String toString()
           Returns the print mode specified by this CrPrintMode object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PDF

public static final CrPrintMode PDF

Specifies PDF print mode.


ACTIVEX

public static final CrPrintMode ACTIVEX

Specifies ActiveX print mode.

Method Detail

fromString

public static final CrPrintMode fromString(java.lang.String mode)

Converts the strings "PDF" and "ActiveX" to a CrPrintMode object.

Parameters:
mode - a String that specifies the mode. This can be either "PDF" or "ActiveX".
Returns:
a CrPrintMode object

toString

public java.lang.String toString()

Returns the print mode specified by this CrPrintMode object.

Returns:
A String specifying the print mode represented by this object.