Controls what happens when a log file already exists (append, overwrite, cancel). Set this property before calling PrinterLogging and PrintToFile. It will overwrite the existing log file by default if this property is not used (VT/6530 only.)
Overwrite = 1
Append = 2
Cancel = 4
Dim bzhao As Object Sub Main set bzhao = CreateObject("BZWhll.WhllObj") bzhao.Connect "" bzhao.IfLogExists = 2 'Append bzhao.PrinterLogging = True bzhao.PrintFileName = "printfile.txt" 'And stop some time later bzhao.PrinterLogging = False End Sub