## Netscape Troubleshooting

The section provides tips for using the report viewers with Netscape.

Click the appropriate link to jump to that section:

- Viewing a report
- Tagging considerations

## Viewing a report

If Netscape continually crashes when you are attempting to view a report, try using one of these workarounds.

Click the appropriate link to jump to that section.

- Adding a dummy style
- Adjust height and width
- Disable DHTML
- Using multiple reports

### Adding a dummy style

After the </HEAD> tag and before the <BODY> tag, add a dummy style. There is a known bug in Netscape that causes the browser to crash in some cases when styles are used in the body of a page.

##### Example

`</HEAD>`

`<STYLE TYPE='text/css'><!-- .FakeStyle { color:blue; } --> </STYLE>`

`<BODY>`

### Adjust height and width

Ensure that any specified height and width in a <LAYER> or <DIV> tag is wide enough to handle the HTML version of your report. If Netscape is not able to fit the report into the container, it usually crashes.

### Disable DHTML

As a last resort, set the RenderAsHTML32 property to True to return only pure HTML 3.2 tags. Although the output does not look as true to the original report compared to HTML 4.0 tags, this may be the only way for you to display the report in some browsers.

### Using multiple reports

When using multiple reports in the same page, ensure that only one report is prompting for a database logon or parameter at any given time. The HTML returned by the automatic parameter prompting and automatic database logon routine is not designed to be displayed in multiple instances at the same time. See TwoViewsWithParameters.asp for an example of how to view multiple reports that have parameters.

## Tagging considerations

This section contains guidelines to help you avoid tagging issues specific to Netscape.

Click the appropriate link to jump to that section.

- Using closing tags
- Using <DIV> tags
- Applying a style
- Using hyperlinks

### Using closing tags

Ensure that all tags are properly matched up with a closing tag where appropriate. For example, if you put a <TABLE> tag without a corresponding </TABLE> tag later on in the web page, the table is not rendered correctly.

### Using <DIV> tags

- When using nested <DIV> tags, even though the generated script is in the same <DIV> as the function calling it, Netscape sometimes considers all JavaScript functions to be out of scope. It appears that if <DIV> tags are used, the JavaScript function must be one level up for Netscape to consider the function in scope.
- When using complex nested <DIV> tags, Netscape often renders the report differently if you give the <DIV> tag an identifier. That is, <DIV ID=hello> causes Netscape to render the page differently in some cases than if the tag was simply <DIV>.
- A form which contains <DIV> tags does not work.

  This code does not work:

  `<FORM>`

  `<DIV ID="firstLayer">`

  `<INPUT TYPE="Text" NAME="Input1" SIZE="20">`

  `</DIV>`

  ``

  `<DIV ID="secondLayer">`

  `<INPUT TYPE="Text" NAME="Input2" SIZE="20">`

  `</DIV>`

  `</FORM>`

  The solution is to put a form inside each layer:

  `<DIV ID="firstLayer">`

  `<FORM NAME="form1">`

  `<INPUT TYPE="Text" NAME="Input1" SIZE="20">`

  `</FORM>`

  `</DIV>`

  `<DIV ID="secondLayer2">`

  `<FORM NAME="form2">`

  `<INPUT TYPE="Text" NAME="Input2" SIZE="20">`

  `</FORM>`

  `</DIV>`

### Applying a style

- Styles set in linked style sheets do not always apply to classes inside your document. When using <DIV> tags, if Netscape is not applying a style set in your CSS page, you need to write the style inline in your HTML. The HTML returned by the Crystal Report Server Control does not use any external style sheets.
- Netscape sometimes crashes if there is a valid style applied to a <SELECT> object. Changing the order that the styles are placed in the style attribute of various HTML elements can potentially change the output as well. An example of this is the "position: relative;" style as applied to a "<DIV>" object. It is not uncommon for the HTML text "<DIV style='position:relative; border-bottom-style: solid'>" to render differently than "<DIV style='border-bottom-style: solid; position:relative'>", or for Netscape to crash in some of these cases.
- When working with tables, it is necessary to set the style in the containing object for Netscape in order to apply the style to the intended object. For example, when rendering the following HTML using Netscape, the style contained in "firstStyle" is applied to the contained <SELECT> object.

  `<TD class="firstStyle">`

  `<SELECT class="secondStyle"....>`

  `</TD>`

### Using hyperlinks

URLs sent to a Netscape 4.x browser cannot contain spaces. Spaces in hyperlinks should be replaced by `%20` to provide maximum compatibility.

Crystal Decisions http://www.crystaldecisions.com/ Support services http://support.crystaldecisions.com/