In This Topic
You can open session document files that were created in previous sessions. This sample program uses the CreateControl() to create a session from a saved session document file. (For other ways to get terminal sessions, see Getting Terminal and View Objects.)
To create a session from a session document file
- Create a session and save it as "gettingStarted" (for example, gettingStarted.rd3x) in the default folder (...\myDocuments\Micro Focus\Reflection).
- In Visual Studio, create a new Console Application project and add references for the following Reflection assemblies. (Depending on your version of Visual Studio, these can be found either on the .NET tab or under Assemblies | Extensions.)
Attachmate.Reflection.Framework
Attachmate.Reflection.Emulation.IbmHosts
Attachmate.Reflection.Emulation.OpenSystems
Attachmate.Reflection
- Replace all the code in the Program.cs file with the following code for the terminal you are using.
To test this project
- Press F5 to run the project and verify that the session opens.