SQL Object
 
Syntax
 
SQL.PrintHexCodeDocument(FileName, PrinterPath[, Copies])
 
Description
Opens a .TXT or .HEX document and then sends it directly to the specified printer path, using control codes sent directly to the printer.
 
Returns value TRUE on success, FALSE otherwise.
 
Parameter
Description
FileName
Path and file name reference to a text file (.txt or .hex).
Printerpath
A completely specified pathname, according to the UNC standard. Printer names in Windows are not allowed.
Copies
Optional parameter to determine the number of copies to print. If omitted, the number is 1.
 
 
Syntax Hex specifications
 
Parameter
Description
{hh}
Single hexidecimal value, e.g. escape character: {1B}
{hh,ii,kk}
Multiple hex values separated by a comma are sent to the printer in a contiguous sequence.
{hhcomment}
A comment clarifying the control code can be sent after a hex value, this can also be done in a string.
 
See Also
Example
Sub Main()
 
    Dim sFile As String
    Dim PrtPath As String
 
    PrtPath = "\\SERVER\HPLASE1"
    sFile = InputBox$("HexBestand:")
    If SQL.PintHexCodeDocument(sFile, PrtPath, 2) Then
        Debug.Print "In duplo afgedrukt!"
    End If
 
End Sub