Console (Object)

Member of:

Application object

Description:

Represents the Console window.

Note:

Do not use this object model syntax for Interactive Reporting documents to be deployed in EPM Workspace:

Console.Write() Console.WriteLn()

Example 1:

This example shows how to display the names of document sections in the Console. Print names on new lines using Carriage Return “\r” and New Line “\n”. The example uses the Write (Method):

for(I=1 ; I <= ActiveDocument.Sections.Count; I ++)
         Console.Write (ActiveDocument.Sections[I].Name+"\r\n")

Example 2:

This example shows how to print document section names on individual lines using the Writeln method:

Console.Writeln(ActiveDocument.Name +"'s sections are: ")
for (j=1 ; j < ActiveDocument.Sections.Count ; j++)    
Console.Writeln("Section #"+j +" = " +ActiveDocument.Sections[j].Name)

Method:

Write(OutputData), Writeln (OutputData and new line after the inserted text)