IrDA Function Reference

prnPrintLine

IrDA Function Reference | Example

This function sends a text string to the printer.

<DllImport("SapphireIRDA.dll")> _
Public Function prnPrintLine(ByVal sData As String, ByVal lLen as Integer) As Integer
End Function

Parameters

  sData
    This is a string that contains the data to print.
  lLen
    An integer specifying the length of the data source.

Return Values

  Returns a number indicating success or failure where 0 is successful.

Remarks

 

It is possible to send escape codes to your printer using the Chr() function.

Examples:

Double width text
prnPrintLine(Chr(14))

Underline text
prnPrintLine(Chr(27) & Chr(45) & Chr(1))

Bold text
prnPrintLine(Chr(27) & "E")