|
Please sent me a way to print text using bluetooth printer
ssss
|
|
|
|
|
Printing is not supported in Windows Mobile. However this doesn't mean it is impossible.
Here is general plan:
1. Make communication with the printer.
2. Send commands to the printer, so it can print whatever you desire.
First part is pretty much standard and easy. The communication trough bluetooth is usually done as communication trough serial port. Probably sounds a little bit scary, but my routine is around 10 lines of code (just plain API).
The second part is a little bit tricky. It is printer-dependent. Also you need to know at least one of the ways to command the printer.
The easiest way is to learn some of the printer languages- EPL, CPCL, ZPL, ... EPL would be probably the preferred, because it is supported by almost every printer. Personally I prefer CPCL - it is like writing a script.
Most printer support 'Line Mode' - you send them just the text and it prints like in DOS times. However, you should check the manual how to set it up.
P.S. One con about printing with Mobile is that it is quite printer-dependent. If your client have a different one, you will probably need to change the print routine.
|
|
|
|
|
Can U expalin it more easy way. I have no idea about printing
ssss
|
|
|
|
|
Can U expalin it more easy way. I have no idea about printing
There is no easy way
Anyway, the idea is simple:
You make a connection to the printer trough bluetooth serial communication.
With the connection you send commands to the printer (what to print). This can be done trough a printer language or in 'line mode' (like 'print' in C)
Quite simple
|
|
|
|
|
I don't mean easy way. I mean please explain it more deaply pal. Because I have no idea of Serial communication and printer languages
Dushan Perera
|
|
|
|
|
If this can help you, you must imagine the printing from a device using a bluetooth connected printer as to send an SMS through a bluetooth connected cellular.
If to send SMS through a bluetooth connected cellular, the device must send "AT Commands" and the text of SMS to the telephone, to print is necessary to send "ESCAPE Commands" and the text to print to the printer.
How already suggested you, the first step is to establish a bluetooth connection.
modified on Monday, September 29, 2008 3:05 PM
|
|
|
|
|
Hi akirilov,
I am very interested in your routine to establish a bluetooth connection.
In particular if it is in VB-Compact Framework (Windows Mobile 2003 SE compatible), and if it supports Widcomm (not Microsoft) bluetooth stack ....
modified on Tuesday, September 30, 2008 6:55 AM
|
|
|
|
|
Hi I'm working in this moment with an Symbol MC35 and I have to print by Irda in to a Printer Zebra Mz220, This printer support CPCL, and this is what I do, first open the serial port (in this case com3) and sending the code cpcl for writte in the printer.
How ever the comunications begins and the blue light blinks but, an error message show "IOException", please if any one have a clue about how to fix this I'll appreciate.
thanks
|
|
|
|
|
I'm trying to figure out how to include google maps in my application. so i when i get the cords i can render a google map. ideas on how to do this?
|
|
|
|
|
You get the langitude and latitude values, supply to google map API.
|
|
|
|
|
yeah I get that but how would one render it on the phones screen with out launching IE or some other view.
|
|
|
|
|
Hi, moos3,
I have been trying to do the same thing but without any advancement. If you could find any possible way to do that, please let me know.
Thanks in advance,
Renuka Prasad.
|
|
|
|
|
Hello,
how can i get for example Battery-Informations, Network-Informations, Volume-Informations and so on?
How can i dial a number from my Application and Send a SMS?
Thanks
|
|
|
|
|
import Microsoft.WindowsMobile.Status namespace u have all the method to get informatiom about phone
ssss
|
|
|
|
|
softwarejaeger wrote: How can i dial a number from my Application and Send a SMS?
for dial a number use following code
Dim s As New Microsoft.WindowsMobile.Telephony.Phone<br />
s.Talk("+919413684086\0")
and for send a sms using following code
Dim messageBody As String<br />
<br />
messageBody = Me.MessageText<br />
Dim SMSMessage1 As SmsMessage = New SmsMessage("+919413684086", messageBody)<br />
SMSMessage1.Send()
hope this helps
|
|
|
|
|
Hi all!
It's possible to use this code also for Windows mobile 2003 SE (not Phone Edition) applications?
If not, are there other alternatives to do the same work (send SMS)using a cell phone connected by bluetooth to the above device?
Thanks
Ignazio
|
|
|
|
|
Helllo,
How can i get the device id of a windows mobile 5
Best regards
Elie
dghdfghdfghdfghdgh
|
|
|
|
|
//import InteropServices namespace
using System.Runtime.InteropServices;
//Import DLL
[DllImport("coredll.dll")]
private extern static int GetDeviceUniqueID([In, Out] byte[] appdata,
int cbApplictionData,
int dwDeviceIDVersion,
[In, Out] byte[] deviceIDOuput,
out uint pcbDeviceIDOutput);
public string getDeviceUniqueID()
{
byte[] buffer = GetDeviceID("MyAppString");
StringBuilder sb = new StringBuilder();
for (int x = 0; x < buffer.Length; x++)
{
sb.Append(string.Format("{0:x2}", buffer[x]));
}
string strUniqueID = sb.ToString();
return strUniqueID;
}
ssss
|
|
|
|
|
|
|
|
HIi THOBANI,
CHECK THIS CODE
private string FindContacts()
{
OutlookSession osSession = new OutlookSession();
int iCnt = 0;
string strName = null;
if (osSession.Contacts.Items.Count > 0)
{
while (iCnt < osSession.Contacts.Items.Count)
{
if (strName == null)
{
strName = osSession.Contacts.Items[iCnt].FirstName.ToString();
}
else
{
strName += "," + osSession.Contacts.Items[iCnt].FirstName.ToString();
}
iCnt++;
}
}
return strName;
}
Hope that this may be help.
Pavan Pareta
|
|
|
|
|
How can I export SMS of SmartPhone into my PC Desktop using C# code?
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
Hi Blue Boy,
You need to use Messaging API (CE MAPI) which is COM-based to access the Inbox. That means you need some knowledge on COM Interop in order to use it in the .NET Compact Framework (or in C#).
Messaging API (CE MAPI)
see[^]
Pavan Pareta
|
|
|
|
|
Thanks PavanPareta I will check it now
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|