Click here to Skip to main content
15,883,883 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello, im triying to find a way to send simple text file to a bluetooth printer from a MVC .NET website. Im thinking in a button that when the user clicks it, the controller sends the file to the printer (that was previously bluetooth atached with the phone/tablet/PC).
Any idea wich library or code example to use it?
Im building de website with MVC .NET 4

Thanks in advance!

Leo

What I have tried:

Hello, im triying to find a way to send simple text file to a bluetooth printer from a MVC .NET website. Im thinking in a button that when the user clicks it, the controller sends the file to the printer (that was previously bluetooth atached with the phone/tablet/PC). 
Any idea wich library or code example to use it?
Im building de website with MVC .NET 4
Posted
Updated 21-Apr-18 10:17am

1 solution

You can't do it using ASP.NET/MVC code. That code runs entirely on the server, not the client. The server will have no access at all to the client browser, nor any devices attached to it.

You have to use a javascript library to do anything like this. The client-side code, javascript, will have to send the file to the printer. Those libraries, and the browser support to allow them to work, are all currently experimental.

Google has something interesting you might want to read on it, here[^] .
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900