ng-thermal-print icon indicating copy to clipboard operation
ng-thermal-print copied to clipboard

Is it possible to print any text with WebPRNT?

Open alejuanito opened this issue 3 years ago • 0 comments

I have been able to connect the printer to the network and when I press Connect to WebPRNT it prints the web request.

Now I wonder how I can make it print any text like the one in the example:

this.printService
       .init ()
       .setBold (true)
       .writeLine ("Hello World!")
       .setBold (false)
       .feed (4)
       .cut ("full")
       .flush ();

Using webPrintDriver is it possible to print any text? So far it does not print anything other than the request from the web

Only print this:

WhatsApp Image 2021-12-01 at 6 15 12 PM

When I execute : this.printService .init () .setBold (true) .writeLine ("Hello World!") .setBold (false) .feed (4) .cut ("full") .flush ();

this is the ERROR Cannot initiate the print service. No connection detected.

And when execute: this.printService .setDriver(this.webPrintDriver, "WebPRNT") print the http response

alejuanito avatar Dec 01 '21 23:12 alejuanito