I'm trying to print a raster image using PCL in vb.net. I have the first few commands to start PCL:
Imports Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6
Module Module1
Sub Main()
Dim bytes As Integer = 57
Dim f22 As New Printer
f22.Print(Chr(27) & "*r0F" & Chr(27) & "*t150R" & Chr(27) & "*r450S" & Chr(27) & "*r2" & Chr(27) & "*b0M" & Chr(27) & "*r1U")
f22.EndDoc()
End Sub
End Module
However, when the page prints the output as:
*r0F*t150R*r450S*r2*b0M*r1U
In other words, the PCL isn't being properly read by either .net or the printer as pcl, and is just being processed as a normal string. Can anyone help me get this working?
Thanks