You can use Reflection 2008 to control an application that supports Automation (such as Word or Excel).
The following procedure shows how to copy text from the Reflection 2008 screen display and enter that text into a Word document.
Note: In this example, the command for OpenSystems hosts (UNIX, OpenVMS, and ReGIS Graphics) is commented out.
Sub SendTextToWord()
Dim displayText As String
'For IBM hosts:
With ThisIBMScreen
displayText = .GetText(18, 2, 50)
'For OpenSystems hosts:
'With ThisScreen
'displayText = .GetText2(.ScreenTopRow,0,_
'.ScreenTopRow+.DisplayRows,.DisplayColumns)
End With
Set Word = CreateObject("Word.Application")
Word.Visible = True
Word.Documents.Add
Word.Selection.TypeText Text:=displayText
'Type a path to which you have read/write access.
Word.ActiveDocument.SaveAs
Filename:=_"C:\Users\[UserName]\Documents\MySample.doc"
Word.Quit
End Sub