Writes an output string to the document that ends with a line break.
PSDocumentClass object
psDocument.WriteLn( string )
Argument |
Description |
---|---|
string |
The output string |
None
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 |
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>");