Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to print any text with WebPRNT? #59

Open
alejuanito opened this issue Dec 1, 2021 · 0 comments
Open

Is it possible to print any text with WebPRNT? #59

alejuanito opened this issue Dec 1, 2021 · 0 comments

Comments

@alejuanito
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant