WriteLn

Description

Writes an output string to the document that ends with a line break.

Applies to

PSDocumentClass object

Syntax

psDocument.WriteLn( string )

Argument

Description

string

The output string

Returns

None

Usage

Calling this method adds a line break in the HTML source, not in the final HTML output. For a line break in the HTML output, you still must add a <br> element to the HTML source.

At runtime, WriteLn has the following behavior:

Application server

Runtime behavior

ASP

Calls the Write method of the Response object

JSP

Calls the print method on javax.servlet.jsp.JspWriter

Examples

Example 1

The following example uses WriteLn to write the string “Hello World!” to the current document and adds a line break in the HTML output as well as in the HTML source:

psDocument.WriteLn("<P>Hello World! <BR>");