The viewer is capable of generating complete HTML
pages and can set the appropriate page properties depending on the viewing
context. Setting setOwnPage to true provides several benefits, by allowing the
viewer to completely handle the surrounding HTML content. Allowing the viewer
to handle the surrounding HTML content reduces the amount of code you need to
add to your JSP page and allows the viewer to automatically determine certain
settings:
It allows the viewer to choose which page start
and end tags to use based on what device is being used to view the page.
For example, it writes out the <html> start
tag for web browsers and <wml> start tag for mobile devices.
Note: Crystal Reports Java does not support
generating reports for display on mobile devices.
It correctly sets the content-type and charset
information for the page. This ensures that pages containing international
characters is displayed correctly.
It automatically enables export and print button
support in the viewer.
If setOwnPage is false, the surrounding HTML tags and
content-type and charset directives need to be manually set. Additionally, when
setOwnPage is false, the printing and exporting features are disabled.