![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Additional Libraries Users contributed libraries. This sub-forum is only available to licensed users. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
Hi guys
Before the forum was hacked,again, I had a thread about wrapping the Printer.DLL wich seems to be a native(?) dll... Not sure who, but someone replied ( thank you ) saying that I only needed to establish a serial conection between the device and the printer and send string to it... But I was targeting the Desktop....From what I could read in several pages in Internet, Printer dll support returning the default printer, setting a default printer, print preview, etc.... I think that with a working printer support our apps could turn much more powerfull, and thus making Basic4Ppc much more visible....
__________________
Paulo Gomes Porto, Portugal PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD PPC: Qtek9000, 1GB SD DLL Version Listing |
|
||||
|
Erel, you are supperb....
I don't know if this lib was already in the making and it was just my good timing or if I started you going...anyway... Thanks!!!! a LOT Only You to release a new Lib the day it was "requested"!!!!
__________________
Paulo Gomes Porto, Portugal PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD PPC: Qtek9000, 1GB SD DLL Version Listing |
|
||||
Thank you Erel. CableGuy, Actualy before the forum restore you've posted a request for a printer libraryl based on the artice of the following link http://www.codeproject.com/netcf/CFPrinterClass.asp which is for the compact framework. My answer was the following. It is easy to print ASCII characters to a serial, IR, or Bluetooth line (or even page) printer (as the class you mentioned above does) from your device. You need only to open a serial connection to your printer using serial library (with the right BaudRate etc.) and then send strings followed by CRLF to change line. When you are finished with your page send a form feed character (ASCII character 12) to change page. Then close the serial connection. Send escape sequences (look to your printer's technical guide) for bold, italics, condensed, emphasized etc. characters. It is that simple. But this method prints only ASCII character (0-127) and Extended ASCII (128-255). If you need to print graphics, barcodes or unicode strings then you must do much more because it is printer depended. You should go deep into your printer as there is not a printing engine (as there is for Desktop Windows) for Windows Mobile with printer drivers etc. or use a third party control. I personally to print to thermal label printers, I use from www.fieldsoftware.com it's PrinterCE.NetCF SDK. It is a commercial product and supports only concrete printers. |
|
||||
|
Dzt, thanks for retrieving my previous post a sub-sequencial reply....
__________________
Paulo Gomes Porto, Portugal PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD PPC: Qtek9000, 1GB SD DLL Version Listing |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|