Specifications

COM+ reference
Gallagher & Robertson Glink: API reference manual 23
Creating or modifying configuration parameters
Modifying Glink configuration options, must be done before calling the
GlinkApi.start method. You must first create a GlinkConfiguration object, either
from an existing Glink configuration file or a default, depending on the name
you supply as the first parameter. Once the object is created, you can modify any
of the documented parameters using the GlinkConfiguration.setParameter
method. You then add the configuration object to the list of available sessions,
and set the GlinkApi.sessionName to the name you supplied when you created
the object.
Dim WithEvents glapi As Glink.GlinkApi
Dim glconf As Glink.GlinkConfiguration
Set glapi = New Glink.GlinkApi
Set glconf = glapi.GlinkConfiguration
("My new TP8 config",
GlinkConfiguration_EMULATION_VIP7804,
GlinkConfiguration_PROTOCOL_GGATE_DSA_CXI,
"ggate.gar.no")
glconf.setParameter ("emu.destructbs=true")
glapi.addConfiguration glconf
glapi.sessionName (glconf.getName)
glapi.start
glapi.notifyString "LOGICAL ID--", False, 1, True
glapi.setVisible (True)
etc...
Intercepting print data
Print data can only be received by the GlinkApi program if the Glink
configuration has been setup for GlinkApi printing. This can be done in the
Glink Settings/Printer/Options dialog box by selecting GlinkApi in the "Host
printing" and/or "Local printing" options, or it can be done with the
GlinkConfiguration.setParameter ("print.type=GlinkApi") method at run-time.
Print is then received as GlinkEvent_PRINT_DATA notifications in the
onGlinkEvent event listener function.