简体   繁体   中英

Javascript to print with wifi printer

I´m making a simple webapp, I want that when it is open in mobile phones print some data using the user´s wifi printer which most of cases will be an Epson L355.

Can anybody give me a clue or sample to achieve this?

Thank you all.

You won't be able to do this because you don't have access to the user's printer. Instead, you can just generate a pdf and redirect user on it.

The user will then be able to download / print the pdf via his inline PDF viewer.

You can do it by following this : How to force files to open in browser instead of download (pdf)?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM