Need to print an invoice from a C# application on a mobile device
Posted on 2008-10-17
My ultimate goal is to use ce SQL records I have created from Microsoft Mobile Sales solution (which runs a C# class on the device) and print an invoice directly from the moble device that is attached to a printer.
What is the best approach for this?
It also appears that the device I am using Symbol MC7094 only supports print drivers for printers such as Zebra QL420... so that means the invoice will have to be on a narrow piece of paper instead of an 8 X 11 normal invoice. (tech from Symbol told me there are no driver available for printing to standard printer... would be great if he was wrong).
In any case. I have a few options to produce the invoice.
1) if Mobile Word has all features of regular word (which I don't know.. Ms is getting back to me on this). I can leverage Microsoft.office.Interop class .. and produce a word document dynmaically through the c# application.. I have done this already in standard c# application not on a device.. if so I have no problems.. I know that there is a method to print the word document to a printer.
2) I also know I can create a simple flat file in C# application.. but don't know how to print it.
so i think I want to do more than just create a flat file.. I need software that can create a file (object) that is printable through the C# application... 1 click approach.
3) Seems there must be some mobile device label software that I can install on the mobile device that will allow me to print a decent invoice.. Rental car companies at the airport do this all the time so must be fairly common.
the software would have to have methods that I can acces from within the C# application.. similar to what I do with Word in a full C# application.