This example prints the PROFSF2 TEXT host file. The XfrBinaryCRLF property is used to specify that carriage return and linefeed characters be added to the end of each line of the host file when it is transferred from the host to be printed.

Option Explicit

Sub PrintHostFileDemo ()

 With Session

  .XfrBinaryCRLF = rcConvert

  .PrintHostFile "PROFSF2 TEXT", rcXfrBinary, False

 End With

End Sub