IrDA Function Reference

prnPrintLine

IrDA Function Reference | Example

This function sends a text string to the printer.

Declare Function prnPrintLine Lib "SapphireIRDA.dll" (ByVal sData As String, ByVal lLen As Long) As Integer

Parameters

  sData
    This is a string that contains the data to print.
  lLen
    A long 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")