This is more a question if I am taking a 'wrong path' to accomplish the task.
I need to print Data to Receipt Printers from Web Application.
Based on what I understand from various posts on net, it seems best option would be to create something like a Print Server (not sure about the name). This will be C# desktop application running as a service. I am planning to put messages in queue and Print Server to pull messages from queue and print it to reconfigured LAN printers. I will be using POS.NET to connect to POS devices.
Added advantage (to using Javascript/pdf solutions) is that I can enhance the same "Print Server" to send information to display system. The message system could be decoupled to be on cloud so as to print in a different geographical area, like warehouse.
If I target Framework 3.5 for the service, I can get rid of POS.NET issues with Framework 4.0 plus versions.
Am I reinventing something that is already available in .Net or possibly an open-source application?
I found these kind of similar questions
How to print from web application to receipt printer?
Configuring a POS printer for remote printing
which were helpful but did not answer my question in full.
I had a to do exactly this, and after many hours of searching, I could not find anything. I achieved this by installing Thunderbird (any email client will do) and send the receipt via email to the account linked up to that client, I then setup a rule on the email client to print out anything it recieved.
Related
I have these three radio button inside the group box named Printer Connection in the windows form:
a. Network
b. Serial
- dropdownlist
c. Web service
User has to choose one of the option from above before printing any labels or clicking the button Print Label. If someone would explain about the purpose of web service and the scenario how it can be utilize to connect to the printer and printing label. Thank you!
It is hard to understand what app you are using but I have to imagine you are using something based off of the Java SDK by Zebra. In this SDK there is a Web Services SDK. It comes with a .war file that gets added to a Tomcat server. Printers have a set of settings which when configured will have the pritners establish a connection to the server with the .war file installed. Once the printer has connected you can use the Java SDK functions to communicated with the printer from that server.
This explanation is probably over simplified, but if you look through the help documentation on the SDK you will probably get a better explanation.
In my current project we are trying to integrate a card reader into a
website. The problem is that we have to have the Windows Service
sitting on the clients machine in order for the card reader to work.
The purpose of the website is to have the client scan the card through
the card reader and have the information be sent to the database
through a web service. After the information is saved to the database
it can then be retrieved and shown on the site.
The question I have is
how can I access a .dll, that I have written, from the the asp page
sitting on the server. I know that I could use ActiveX but I am trying to
access the .dll in a way that will allow me to have the webpage be used in
as many browsers as possible.
I am thinking of using silverlight to try and access the dll. The .dll in
question is one that I have written and am trying to access. I've also looked
at trying the DLLImport but I've not been able to get it to work. I am currently using
.NET 4.0 and am writing in C#.
If your client is reading a smartcard, it might be a good idea to use the built-in windows features to use a smartcard to authenticate to IIS on the remote computer. If you're trying to read anything else from the smartcards, then it's usually better to offer the client a normal installer that registers itself as a security device, Browsers have built-in functionality to communicate to such a device. Our local bank, ABN AMRO, uses such a device which is sold by Todos AB and which comes with a driver that works in this fashion.
If you want to do anything else with the smartcard (anything other than reading a certificate or a security token, you'll probably have no other option than to offer the user with a download that I'd personally would always deny.
I'm working on a net based POS system and need to enable silent printing.
(Print without displaying the PrintDialog).
I have managed to get it working but at times when cashiers want to generate new vouchers it does not print and this is becoming a problem.
I have been instructed to create a Windows Forms app that will be installed on all of my cashiers machines, what this app needs to do is once the cashiers log onto the website and sells a voucher i need data to be sent from my ASP.NET website to the Windows form application where the silent print can take place, so as soon as the cashiers clicks on the 'Sell Voucher' button the data must be sent to the installed windows app and print automatically.
The data that will be sent to the cashiers machines is basic info like Cashier Name, Account Name, Site...etc
How would i go about achieving this result?
Thank you in advance.
The two apps will probably need to share a single data source (e.g. using SQL Server).
If the printing needs to happen silently, without user intervention, then you will need to implement a listener (typically as a Windows Service) that waits for new items to be added and are ready to print.
See: Publish-subscribe pattern or, alternatively, Observer Pattern.
Look into WCF or signalr.net
for signalR there is a .net client for easy implementation into a windows app
I was trying to get Win CE device information using Microsoft.SmartDevice.Connectivity dll from a desktop application. I was able to connect , get system info, get running processes and disconnect. I am trying to fetch directories and files existing on device and i am not able to. If any one knows how to get them , please provide some code samples. That will be helpful.
When i was going through link given by ctacke, i found some more parts of it available. I went through CoreCon API - Part V and Followed his steps, it worked. Infact he has a provided a sample application too.
The CoreCon APIs (Microsoft.SmartDevice.Connectivity) cannot inherently give you a list if files on the device. It provides some rudimentary capabilities to get device info and push a file, but it's main purpose it to provide an API pipeline to allow you to create your own client tools. The VSD team did blog an example of using the CoreCon APIs to get a list of files from a connected device in a console app, which should get you most of the way to what you're after.
I have a project I'm working on that requires our WPF application read SMS messages off of a user's connected Windows Mobile phone so we can display recent ones, etc.
I've had little luck with any of the libraries I've found. Most promising seemed to be OpenNETCF.Desktop.Communications but ultimately it seems like I won't be able to do what I need to with it.
What's the best way to read SMS messages off of a connected phone? Will it just be easier for me to write some sort of service app for the phone that acts as a server and our WPF app as the client?
Thanks!
There's nothing out-of-the-box that will do what you want. RAPI, which the OpenNETCF library wraps, has a set of communication APIs, but nothing for SMS. It does have the ability to snap-in custom APIs, so you could create a custom API and use that. The advantage with this strategy is you don't need any user intervention to get stuff onto the device (no copy and run of a service app stuff). The down side is that the custom RAPI DLL for the device must be native code.
If you go with your own mechanism, you can then use the POOM APIs in managed code to get the messages and ship them. The only challenge there is that you have to run some form of a "service" app on the device to listen for calls, which means writing your own protocol, which means a fairly large test matrix.
Jeyo have a product that pulls SMS messages from a phone into outlook PST files. Strikes me that you could just use that product and trawl the PST for recent messages (bit of a kludge I know, but if you were desperate) or talk to them about if they'll licence some of their code for you?