|
Not that bad idea but I assume it is not using threads to communicate and so will block on not connected or faulty printer. Further on Serial port is rarely used, you will find normally Bluetooth printers for Mobile.
Bluetooth printers can be used directly with this code if they are paired and an outgoing port has been defined in the Bluetooth settings of actual devices (Windows Mobile >=6.1).
Missing:
1. using threads and background communication
2. managing error conditions of printer
3. Support for Bold, Italic and other text attributes
4. Support for other print languages like IPL, CSim, XSim, CPL or even FingerPrint. All these are common on Bluetooth portable printers.
5. Support for codepages and international chars.
Unfortunately the author does no longer maintain this code nor his article
Nevertheless a great starter code.
If you need another print engine take a look at the commercial PrinterCE.
~Josef
|
|
|
|
|
Merhabalar bu dll kullanılarak çıktıya barkod basmak mümkünmüdür.
|
|
|
|
|
When I run this project on a Windows Mobile 6 Professional SDK emulator nothing is printed. There is no message about the print status either. The commands execute without exception and nothing happens.
|
|
|
|
|
I've created a page using the preview method and it works, can you paste ypur code in order to help.
regards
|
|
|
|
|
If my print it's installed in my computer... in the default port by epson (ESDPRT001).
i should write on SDPE.Port = "\\EROJAS:ESDPRT001"; ?? (EROJAS name my pc in lan)
|
|
|
|
|
hello Orkun,I use this program to print Chinese characters appear garbled,Can you tell me how to solve?thank you!
|
|
|
|
|
İyi günler Orkun Bey,
Çalışmanız için teşekkürler konusunda hala tek olma özelliğini koruyor sanırım, hem el terminalinde hem de emülatörde çalıştırdım, yalnız türkçe karakterlerde takıldım. Bir başka arkadaşın denediği gibi Türkçe gelen karakterleri değiştirmeye çalıştım ama printerdaki karşılıkları her modelde ve markada farklı olacağı için vazgeçtim. Bir başkası Utf8 formatına çevirmemiz gerektiğini bir başkası da printer a komut yollamamız gerektiğini söylemiş. Siz bu konuyu nasıl çözdünüz acaba?
|
|
|
|
|
public void Print()
{
commDevice.Init();
commDevice.Send(PageBuffer);
FormFeed();
commDevice.ClosePort();
}
Application hangs at "commDevice.Send(PageBuffer)" line. Control does not go to "FormFeed()" line. Where am i going wrong, Please help me.
|
|
|
|
|
Merhaba,
Türkçe karakter problemi yaşayanlari için CommDevice unitinde değişiklik yapmanızı öneririm.
Ben 2 gündür bu problem için uğraşıyorum. Orkun bey çok teşekkür ederiz bu çalışmanıza bir ilave de benden
CommDevice.cs unit
iYBound = (Data.GetUpperBound(0)) + 1;
iXBound = (Data.GetUpperBound(1)) + 1;
// Parse & locate the data into short array
for (iYPos = 0; iYPos != iYBound; iYPos++)
{
// Row loop
for (iXPos = 0; iXPos != iXBound; iXPos++)
{
if (Data[iYPos, iXPos] == '<')
{
Output[iCounter] = 166;
Data[iYPos, iXPos] = '*';
}
if (Data[iYPos, iXPos] == '=')
{
Output[iCounter] = 158;
Data[iYPos, iXPos] = '*';
}
if (Data[iYPos, iXPos] == '>')
{
Output[iCounter] = 214;
Data[iYPos, iXPos] = '*';
}
if (Data[iYPos, iXPos] == 'þ')
{
Output[iCounter] = 159;
Data[iYPos, iXPos] = '*';
}
if (Data[iYPos, iXPos] == 'ý')
{
Output[iCounter] = 141;
Data[iYPos, iXPos] = '*';
}
if (Data[iYPos, iXPos] == 'ð')
{
Output[iCounter] = 148;
Data[iYPos, iXPos] = '*';
}
if (Data[iYPos, iXPos] == 'ò')
{
Output[iCounter] = 150;
Data[iYPos, iXPos] = '*';
}
if (Data[iYPos, iXPos] == 'á')
{
Output[iCounter] = 153;
Data[iYPos, iXPos] = '*';
}
if (Data[iYPos, iXPos] == 'Э')
{
Output[iCounter] = 154;
Data[iYPos, iXPos] = '*';
}
if (Data[iYPos, iXPos] == 'Я')
{
Output[iCounter] = 128;
Data[iYPos, iXPos] = '*';
}
if (Data[iYPos, iXPos] == 'ω')
{
Output[iCounter] = 135;
Data[iYPos, iXPos] = '*';
}
if ((Data[iYPos, iXPos]) != '*')
{
if (0 != (byte)(Data[iYPos, iXPos]))
{
Output[iCounter] = (byte)(Data[iYPos, iXPos]);
}
else
{
Output[iCounter] = 0x20; // Space character
}
}
KAAN KARATAÇ
Destek için: (support) kaankaratac@nefabilisim.com
modified on Monday, July 5, 2010 12:56 PM
|
|
|
|
|
I HAVE DEVELOPED AN APPLICATION THAT SHOULD PRINT INVOICES, ORDERS AND OTHER REPORTS, ON THE PLATFORM DESCRIBED ABOVE.
ALL IS READY TO USE IT BUT A DETAIL, THAT IS - IN FACT - THE VERY PRINTING
DO YOU THINK IT IS POSSIBLE TO FIND ( AND BUY ) A SIMPLE APPLICATION THAT PERMIT TO PRINT A SIMPLE TEXT FILE, FOR INSTANCE NAMED "TOPRINT.TXT", SO I COULD INSTALL IT BESIDE MY PROGRAM ON THE DEVICE
THANK YOU
BEST REGARDS
|
|
|
|
|
I have a USB printer connected to my windows CE device and i've got a similar problem with the job. do you know how i can manage my USB printer?
much appreciated.
|
|
|
|
|
Is it possible to use the described library to print on a Bluetooth printer? For example Citizen CMP.
|
|
|
|
|
I am unable to get any of the examples to work. I am looking for something to help me troubleshoot my printer/mobile device connection. I have a smartdevice app that works on a symbol mobile device. I need to print to a Zebra mobile printer but can't find a way to get the symbol and Zebra to communicate. I have a cable that hooks from the serial port of the symbol to the zebra.
|
|
|
|
|
Can you please give me code to preview and print logo or image from CFPrinting.SmartDevicePrintEngine?
I need a sample code to preview and print logo or image for CF.
|
|
|
|
|
Can you please give me code to preview and print logo or image from CFPrinting.SmartDevicePrintEngine?
I need a sample code to preview and print logo or image for CF.
|
|
|
|
|
excelent work!!!! but
How can i print with a bluetooth printer?
please help me
any idea
tHANKS
THIS I MY EMAIL osvaldo.sanchez84@hotmail.com
|
|
|
|
|
Tengo un problema a la hora de imprimir, y es que necesito aumentar el tamaño de la letra. Cuando imprimo solo tiene un tamaño fijo y es que estoy creando una aplicación para imprimir etiquetas de precios y el precio debe ser mas grande que los demás string como puedo hacer esto.
|
|
|
|
|
How can I change the fonts style, size for a Canon BJC 85?
Thank you.
|
|
|
|
|
Mr. Orkun GEDiK, I want to thank you for your work. It was very helpful to me.
I had to convert the code to VB, and I used a converter from c# to vb.
(Unfortunately, I' m not a c programmer!)
I also had a problem with Greek characters, and I got over it by sending the escape characters. The SubPrint, is now as below (it's VB!):
(I used an o'Neil thermal printer with the Line Printer mode, so the hex values used are for this printer)
Public Sub Print()
' Init device
commDevice.Init()
commDevice.Send(&H1B) ' The ESC character
commDevice.Send(&H77) ' The 'w' character, indicating the font selection command for
' the O'Neil Thermal Printer
commDevice.Send(&H69) ' The 'i' character, indicating the Greek font code for
' the O'Neil Thermal Printer
commDevice.Send(PageBuffer)
' End of page
FormFeed()
' Close COM port
commDevice.ClosePort()
End Sub
Thanks again!
Demetris Mastoras
Athens, Greece
|
|
|
|
|
Hi
Orkun GEDiK
I am trying to open BMP File and send through the SDPE to printer, but i am getting som junk print out
even i have send escape sequence of the printer given in printer manual
ESC * Select Bit image mode
ESC # Print logo
Please give me the sample code to use SPDE to print bmp files on serial printer.
Regards
Ramana
|
|
|
|
|
Hello
sorry for the inconvenience
I use windows mobile and I want to print a picture
you can send the source code for that
thank you
|
|
|
|
|
Hello
please help me
sorry for the inconvenience
I use windows mobile and
I want to print a picture
you can send the source code for that to my mail
thank you
|
|
|
|
|
I want to connect to wireless printer from My Windows Mobile .
Can i use this application to do it.
I donot understand where to start by using this.
Please help me
Thank u in Advance
Poorna
|
|
|
|
|
hello sir my name is varun...i m working as asp.net programmer here....i need ur suggestion...i made a website on asp.net...in website i add a pplication in which i called a sap fuction in asp.net through RFC this is the barcode code...which is given below....but i fetch this code in text box when i print that code on barcode printer it gives the error....so please help me how i execute that code on barcode on client side through asp.net
{D0619,0991,0599|}
{AY;-03,0|}
{C|}
{XB00;0067,0047,9,3,03,0,0186,+0000000000,000,0,00|}
{XB01;0067,0334,9,3,03,0,0186,+0000000000,000,0,00|}
{PV00;0067,0284,0042,0064,B,00,B|}
{PV01;0067,0571,0042,0064,B,00,B|}
{PV02;0067,0319,0020,0034,B,00,B|}
{PV03;0067,0599,0020,0032,B,00,B|}
{RB00;PF3221187 A 21087089 46|}
{RB01;PF3221187 A 21087089 46|}
{RV00;PF3221187 A 21087089 46|}
{RV01;PF3221187 A 21087089 46|}
{RV02;ROLL NO.: D-37700 GROUP : 2A|}
{RV03;ROLL NO.: D-37700 GROUP : 2A|}
{XS;I,0001,0001C4200|}
{D0619,0991,0599|}
{AY;+07,0|}
{C|}
{LC;0033,0041,0976,0288,1,3|}
{PC000;0042,0066,05,05,E,00,B|}
{PC001;0042,0102,05,05,E,00,B|}
{PC002;0042,0142,05,05,E,00,B|}
{PC003;0042,0182,05,05,E,00,B|}
{PC004;0042,0223,05,05,E,00,B|}
{PC005;0042,0266,05,05,E,00,B|}
{PC006;0193,0075,05,05,M,00,B|}
{PC007;0193,0106,05,05,M,00,B|}
{PC008;0193,0146,05,05,M,00,B|}
{PC009;0193,0186,05,05,M,00,B|}
{PC010;0193,0226,05,05,M,00,B|}
{PC011;0193,0275,05,05,M,00,B|}
{PC012;0634,0076,05,05,E,00,B|}
{PC013;0753,0086,05,05,M,00,B|}
{PC014;0633,0113,05,05,E,00,B|}
{PC015;0753,0116,05,05,M,00,B|}
{PC016;0633,0152,05,05,E,00,B|}
{PC017;0753,0156,05,05,M,00,B|}
{PC018;0633,0192,05,05,E,00,B|}
{PC019;0753,0196,05,05,M,00,B|}
{PC020;0633,0236,05,05,E,00,B|}
{PC021;0753,0245,05,05,M,00,B|}
{LC;0621,0035,0621,0285,0,3|}
{LC;0034,0320,0977,0568,1,3|}
{PC022;0043,0346,05,05,E,00,B|}
{PC023;0043,0382,05,05,E,00,B|}
{PC024;0043,0422,05,05,E,00,B|}
{PC025;0043,0463,05,05,E,00,B|}
{PC026;0043,0503,05,05,E,00,B|}
{PC027;0043,0546,05,05,E,00,B|}
{PC028;0193,0355,05,05,M,00,B|}
{PC029;0193,0386,05,05,M,00,B|}
{PC030;0193,0425,05,05,M,00,B|}
{PC031;0193,0466,05,05,M,00,B|}
{PC032;0193,0506,05,05,M,00,B|}
{PC033;0193,0555,05,05,M,00,B|}
{PC034;0634,0356,05,05,E,00,B|}
{PC035;0754,0365,05,05,M,00,B|}
{PC036;0634,0392,05,05,E,00,B|}
{PC037;0753,0396,05,05,M,00,B|}
{PC038;0634,0432,05,05,E,00,B|}
{PC039;0753,0436,05,05,M,00,B|}
{PC040;0634,0472,05,05,E,00,B|}
{PC041;0753,0476,05,05,M,00,B|}
{PC042;0634,0516,05,05,E,00,B|}
{PC043;0753,0525,05,05,M,00,B|}
{PC044;0634,0266,05,05,E,00,B|}
{PC045;0634,0547,05,05,E,00,B|}
{PC046;0753,0275,05,05,M,00,B|}
{PC047;0753,0556,05,05,M,00,B|}
{LC;0621,0314,0621,0564,0,3|}
{RC000;Sort No.|}
{RC001;Shade No|}
{RC002;Shade Name|}
{RC003;Lot No.|}
{RC004;Width|}
{RC005;Gross Wt|}
{RC006;PF3221187|}
{RC007;S122770|}
{RC008;COFFEE GROUNDS|}
{RC009;30090550|}
{RC010;140.00 cm|}
{RC011;14.40|}
{RC012;Bale No|}
{RC013;21087089|}
{RC014;Roll No|}
{RC015;D-37700|}
{RC016;Metre |}
{RC017;46|}
{RC018;Grade|}
{RC019;A|}
{RC020;Group No|}
{RC021;2A|}
{RC022;Sort No.|}
{RC023;Shade No|}
{RC024;Shade Name|}
{RC025;Lot No.|}
{RC026;Width|}
{RC027;Gross Wt|}
{RC028;PF3221187|}
{RC029;S122770|}
{RC030;COFFEE GROUNDS|}
{RC031;30090550|}
{RC032;140.00 cm|}
{RC033;14.40|}
{RC034;Bale No|}
{RC035;21087089|}
{RC036;Roll No|}
{RC037;D-37700|}
{RC038;Metre |}
{RC039;46|}
{RC040;Grade|}
{RC041;A|}
{RC042;Group No|}
{RC043;2A|}
{RC044;Design No|}
{RC045;Design No|}
{RC046;|}
{RC047;|}
{XS;I,0001,0001C4201|}
please send me this information on my email id which is vmodi6202@gmail.com or v_modi6202@yahoo.co.in
i really need that soulution so please send as soon as possible
|
|
|
|
|
can u plz tell me the code that how i can print a document from a device application.???
|
|
|
|
|