Skip to main content
OCLC Support

Print

Find the syntax, use, parameters, return values, and an example for the Print macro command in Connexion client.
Syntax BOOL = CS.Print
Use to Print the current (topmost) record.

Same as using the menu command File > Print.
Parameters None
Comments Uses your default printer in Windows, unless you previously set the option in Tools > Options > Printing to print records to a text file.
Return values TRUE if the action is successful, or FALSE if not.
Example Sub Main()

     Dim CS As Object
     Set CS = GetObject(,“Connex.Client”)

     If CS.IsOnline = False Then
          CS.Logon ““, ““, ““
     End If

     CS.Search “WC”, “#1”

     If CS.Print() = True Then
          MsgBox “Record printed OK”
          End If
End Sub

What this example does
  • Logs on to Connexion if not already logged on, using the default authorization and password you selected in Tools > Options > Authorizations tab.
  • Searches WorldCat for record number 1.
  • Prints record number 1. If the record prints successfully, returns a message: Record printed OK.