Hi guys!!

Im new in this pocket wonderful world, im begging to develop under windows
ce 5.0, now i have to send to print text from a handheld (wince 5) to a
bluetooht zebra cameo 2 printer, i dont know how to begin, i've downloaded
some pdfs from zebra's site, i wonder if someone can guide me with this.

As a simple sample i want to send the text "hello world" to the printer,
i've read about CPCL, its simple but i dont have idea how to send that code
to the printer, does someone has an example that shows how to do this?


Regards.
Rick

Re: zebra cameo 2 printer by Ginny

Ginny
Thu Jan 11 10:38:56 CST 2007

Rick,

You use a serial port to send data to the printer. You may need to Sleep() a
bit after each line, and you may also need to delay closing the port until
all the text has been sent. Also make sure that each line you send to the
printer is terminated with a carriage return-line feed pair. If you're
sending something more than simple text, then the printer control language
comes into play to control formatting, fonts, etc. Finally, I usually write
several empty lines at the end of my text to advance the paper so I can read
whatever I just sent.

--
Ginny Caughey
Device Application Development MVP


"Rick" <zatankloz@gmail.com> wrote in message
news:%23GC5r0ZNHHA.1240@TK2MSFTNGP03.phx.gbl...
> Hi guys!!
>
> Im new in this pocket wonderful world, im begging to develop under windows
> ce 5.0, now i have to send to print text from a handheld (wince 5) to a
> bluetooht zebra cameo 2 printer, i dont know how to begin, i've downloaded
> some pdfs from zebra's site, i wonder if someone can guide me with this.
>
> As a simple sample i want to send the text "hello world" to the printer,
> i've read about CPCL, its simple but i dont have idea how to send that
> code to the printer, does someone has an example that shows how to do
> this?
>
>
> Regards.
> Rick
>
>



Re: zebra cameo 2 printer by Rick

Rick
Thu Jan 11 14:54:04 CST 2007

Thanks a lot Ginny, i'll try to do it.

Regards.
Rick.


"Ginny Caughey [MVP]" <ginny.caughey.online@wasteworks.com> escribió en el
mensaje news:elrtV8ZNHHA.3268@TK2MSFTNGP04.phx.gbl...
> Rick,
>
> You use a serial port to send data to the printer. You may need to Sleep()
> a bit after each line, and you may also need to delay closing the port
> until all the text has been sent. Also make sure that each line you send
> to the printer is terminated with a carriage return-line feed pair. If
> you're sending something more than simple text, then the printer control
> language comes into play to control formatting, fonts, etc. Finally, I
> usually write several empty lines at the end of my text to advance the
> paper so I can read whatever I just sent.
>
> --
> Ginny Caughey
> Device Application Development MVP
>
>
> "Rick" <zatankloz@gmail.com> wrote in message
> news:%23GC5r0ZNHHA.1240@TK2MSFTNGP03.phx.gbl...
>> Hi guys!!
>>
>> Im new in this pocket wonderful world, im begging to develop under
>> windows ce 5.0, now i have to send to print text from a handheld (wince
>> 5) to a bluetooht zebra cameo 2 printer, i dont know how to begin, i've
>> downloaded some pdfs from zebra's site, i wonder if someone can guide me
>> with this.
>>
>> As a simple sample i want to send the text "hello world" to the printer,
>> i've read about CPCL, its simple but i dont have idea how to send that
>> code to the printer, does someone has an example that shows how to do
>> this?
>>
>>
>> Regards.
>> Rick
>>
>>
>
>
>




Re: zebra cameo 2 printer by Rick

Rick
Fri Jan 12 15:54:35 CST 2007

Ginny, just one more question, from my wince c# app can i send to print
my data? or should i use other programming language like vc++?


Regards.
Rick


"Ginny Caughey [MVP]" <ginny.caughey.online@wasteworks.com> escribió en el
mensaje news:elrtV8ZNHHA.3268@TK2MSFTNGP04.phx.gbl...
> Rick,
>
> You use a serial port to send data to the printer. You may need to Sleep()
> a bit after each line, and you may also need to delay closing the port
> until all the text has been sent. Also make sure that each line you send
> to the printer is terminated with a carriage return-line feed pair. If
> you're sending something more than simple text, then the printer control
> language comes into play to control formatting, fonts, etc. Finally, I
> usually write several empty lines at the end of my text to advance the
> paper so I can read whatever I just sent.
>
> --
> Ginny Caughey
> Device Application Development MVP
>
>
> "Rick" <zatankloz@gmail.com> wrote in message
> news:%23GC5r0ZNHHA.1240@TK2MSFTNGP03.phx.gbl...
>> Hi guys!!
>>
>> Im new in this pocket wonderful world, im begging to develop under
>> windows ce 5.0, now i have to send to print text from a handheld (wince
>> 5) to a bluetooht zebra cameo 2 printer, i dont know how to begin, i've
>> downloaded some pdfs from zebra's site, i wonder if someone can guide me
>> with this.
>>
>> As a simple sample i want to send the text "hello world" to the printer,
>> i've read about CPCL, its simple but i dont have idea how to send that
>> code to the printer, does someone has an example that shows how to do
>> this?
>>
>>
>> Regards.
>> Rick
>>
>>
>
>
>




Re: zebra cameo 2 printer by Ginny

Ginny
Fri Jan 12 16:05:02 CST 2007

Rick,

You can use either C# or vc++. If you use C#, use the
System.IO.Ports.SerialPort class. If you use vc++ use CreateFile, WriteFile,
CloseHandle, etc.

--
Ginny Caughey
Device Application Development MVP


"Rick" <zatankloz@gmail.com> wrote in message
news:uJYrFRpNHHA.780@TK2MSFTNGP03.phx.gbl...
> Ginny, just one more question, from my wince c# app can i send to print
> my data? or should i use other programming language like vc++?
>
>
> Regards.
> Rick
>
>
> "Ginny Caughey [MVP]" <ginny.caughey.online@wasteworks.com> escribió en el
> mensaje news:elrtV8ZNHHA.3268@TK2MSFTNGP04.phx.gbl...
>> Rick,
>>
>> You use a serial port to send data to the printer. You may need to
>> Sleep() a bit after each line, and you may also need to delay closing the
>> port until all the text has been sent. Also make sure that each line you
>> send to the printer is terminated with a carriage return-line feed pair.
>> If you're sending something more than simple text, then the printer
>> control language comes into play to control formatting, fonts, etc.
>> Finally, I usually write several empty lines at the end of my text to
>> advance the paper so I can read whatever I just sent.
>>
>> --
>> Ginny Caughey
>> Device Application Development MVP
>>
>>
>> "Rick" <zatankloz@gmail.com> wrote in message
>> news:%23GC5r0ZNHHA.1240@TK2MSFTNGP03.phx.gbl...
>>> Hi guys!!
>>>
>>> Im new in this pocket wonderful world, im begging to develop under
>>> windows ce 5.0, now i have to send to print text from a handheld (wince
>>> 5) to a bluetooht zebra cameo 2 printer, i dont know how to begin, i've
>>> downloaded some pdfs from zebra's site, i wonder if someone can guide me
>>> with this.
>>>
>>> As a simple sample i want to send the text "hello world" to the printer,
>>> i've read about CPCL, its simple but i dont have idea how to send that
>>> code to the printer, does someone has an example that shows how to do
>>> this?
>>>
>>>
>>> Regards.
>>> Rick
>>>
>>>
>>
>>
>>
>
>
>



Re: zebra cameo 2 printer by ctacke/>

ctacke/>
Fri Jan 12 16:07:16 CST 2007

The mechanism for wrioting to the printer won't change with C++, so there's
no advantage going that route.


--
Chris Tacke
OpenNETCF Consulting
Managed Code in the Embedded World
www.opennetcf.com
--


"Rick" <zatankloz@gmail.com> wrote in message
news:uJYrFRpNHHA.780@TK2MSFTNGP03.phx.gbl...
> Ginny, just one more question, from my wince c# app can i send to print
> my data? or should i use other programming language like vc++?
>
>
> Regards.
> Rick
>
>
> "Ginny Caughey [MVP]" <ginny.caughey.online@wasteworks.com> escribió en el
> mensaje news:elrtV8ZNHHA.3268@TK2MSFTNGP04.phx.gbl...
>> Rick,
>>
>> You use a serial port to send data to the printer. You may need to
>> Sleep() a bit after each line, and you may also need to delay closing the
>> port until all the text has been sent. Also make sure that each line you
>> send to the printer is terminated with a carriage return-line feed pair.
>> If you're sending something more than simple text, then the printer
>> control language comes into play to control formatting, fonts, etc.
>> Finally, I usually write several empty lines at the end of my text to
>> advance the paper so I can read whatever I just sent.
>>
>> --
>> Ginny Caughey
>> Device Application Development MVP
>>
>>
>> "Rick" <zatankloz@gmail.com> wrote in message
>> news:%23GC5r0ZNHHA.1240@TK2MSFTNGP03.phx.gbl...
>>> Hi guys!!
>>>
>>> Im new in this pocket wonderful world, im begging to develop under
>>> windows ce 5.0, now i have to send to print text from a handheld (wince
>>> 5) to a bluetooht zebra cameo 2 printer, i dont know how to begin, i've
>>> downloaded some pdfs from zebra's site, i wonder if someone can guide me
>>> with this.
>>>
>>> As a simple sample i want to send the text "hello world" to the printer,
>>> i've read about CPCL, its simple but i dont have idea how to send that
>>> code to the printer, does someone has an example that shows how to do
>>> this?
>>>
>>>
>>> Regards.
>>> Rick
>>>
>>>
>>
>>
>>
>
>
>



Re: zebra cameo 2 printer by Rick

Rick
Fri Jan 12 16:33:23 CST 2007

Thanks Ginny and Chris, i've found a sample at zebra's site for C#

https://support.zebra.com/OA_HTML/csksxvm.jsp?jttst0=6_50258%2C50258%2C-1%2C0%2C&jtfm0=_0_0_-1_-1_f_nv_&etfm1=&jfn=ZGF94E7E2B807E27B4F5861AA8728DA3DCCEA0499A438A3D919EDEDD14BE9F1B638E4F72AB81F7C65585AC249760A5CA623D&oas=Gr-QwIGLPWhDHYyjE6zk_w..&nSetId=16843&nBrowseCategoryId=10066

but i suppose it works on desktop winforms (document doesn't mention
anything)

are raw functions equal when programming for windows ce and windows xp?

Regards.
Rick.


"Rick" <zatankloz@gmail.com> escribió en el mensaje
news:uJYrFRpNHHA.780@TK2MSFTNGP03.phx.gbl...
> Ginny, just one more question, from my wince c# app can i send to print
> my data? or should i use other programming language like vc++?
>
>
> Regards.
> Rick
>
>
> "Ginny Caughey [MVP]" <ginny.caughey.online@wasteworks.com> escribió en el
> mensaje news:elrtV8ZNHHA.3268@TK2MSFTNGP04.phx.gbl...
>> Rick,
>>
>> You use a serial port to send data to the printer. You may need to
>> Sleep() a bit after each line, and you may also need to delay closing the
>> port until all the text has been sent. Also make sure that each line you
>> send to the printer is terminated with a carriage return-line feed pair.
>> If you're sending something more than simple text, then the printer
>> control language comes into play to control formatting, fonts, etc.
>> Finally, I usually write several empty lines at the end of my text to
>> advance the paper so I can read whatever I just sent.
>>
>> --
>> Ginny Caughey
>> Device Application Development MVP
>>
>>
>> "Rick" <zatankloz@gmail.com> wrote in message
>> news:%23GC5r0ZNHHA.1240@TK2MSFTNGP03.phx.gbl...
>>> Hi guys!!
>>>
>>> Im new in this pocket wonderful world, im begging to develop under
>>> windows ce 5.0, now i have to send to print text from a handheld (wince
>>> 5) to a bluetooht zebra cameo 2 printer, i dont know how to begin, i've
>>> downloaded some pdfs from zebra's site, i wonder if someone can guide me
>>> with this.
>>>
>>> As a simple sample i want to send the text "hello world" to the printer,
>>> i've read about CPCL, its simple but i dont have idea how to send that
>>> code to the printer, does someone has an example that shows how to do
>>> this?
>>>
>>>
>>> Regards.
>>> Rick
>>>
>>>
>>
>>
>>
>
>
>
>




Re: zebra cameo 2 printer by Ginny

Ginny
Fri Jan 12 16:53:22 CST 2007

Rick,

I haven't tried that sample, but it may be close enough.

--
Ginny Caughey
Device Application Development MVP


"Rick" <zatankloz@gmail.com> wrote in message
news:uthAympNHHA.3552@TK2MSFTNGP03.phx.gbl...
> Thanks Ginny and Chris, i've found a sample at zebra's site for C#
>
> https://support.zebra.com/OA_HTML/csksxvm.jsp?jttst0=6_50258%2C50258%2C-1%2C0%2C&jtfm0=_0_0_-1_-1_f_nv_&etfm1=&jfn=ZGF94E7E2B807E27B4F5861AA8728DA3DCCEA0499A438A3D919EDEDD14BE9F1B638E4F72AB81F7C65585AC249760A5CA623D&oas=Gr-QwIGLPWhDHYyjE6zk_w..&nSetId=16843&nBrowseCategoryId=10066
>
> but i suppose it works on desktop winforms (document doesn't mention
> anything)
>
> are raw functions equal when programming for windows ce and windows xp?
>
> Regards.
> Rick.
>
>
> "Rick" <zatankloz@gmail.com> escribió en el mensaje
> news:uJYrFRpNHHA.780@TK2MSFTNGP03.phx.gbl...
>> Ginny, just one more question, from my wince c# app can i send to print
>> my data? or should i use other programming language like vc++?
>>
>>
>> Regards.
>> Rick
>>
>>
>> "Ginny Caughey [MVP]" <ginny.caughey.online@wasteworks.com> escribió en
>> el mensaje news:elrtV8ZNHHA.3268@TK2MSFTNGP04.phx.gbl...
>>> Rick,
>>>
>>> You use a serial port to send data to the printer. You may need to
>>> Sleep() a bit after each line, and you may also need to delay closing
>>> the port until all the text has been sent. Also make sure that each line
>>> you send to the printer is terminated with a carriage return-line feed
>>> pair. If you're sending something more than simple text, then the
>>> printer control language comes into play to control formatting, fonts,
>>> etc. Finally, I usually write several empty lines at the end of my text
>>> to advance the paper so I can read whatever I just sent.
>>>
>>> --
>>> Ginny Caughey
>>> Device Application Development MVP
>>>
>>>
>>> "Rick" <zatankloz@gmail.com> wrote in message
>>> news:%23GC5r0ZNHHA.1240@TK2MSFTNGP03.phx.gbl...
>>>> Hi guys!!
>>>>
>>>> Im new in this pocket wonderful world, im begging to develop under
>>>> windows ce 5.0, now i have to send to print text from a handheld (wince
>>>> 5) to a bluetooht zebra cameo 2 printer, i dont know how to begin, i've
>>>> downloaded some pdfs from zebra's site, i wonder if someone can guide
>>>> me with this.
>>>>
>>>> As a simple sample i want to send the text "hello world" to the
>>>> printer, i've read about CPCL, its simple but i dont have idea how to
>>>> send that code to the printer, does someone has an example that shows
>>>> how to do this?
>>>>
>>>>
>>>> Regards.
>>>> Rick
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>>
>>
>
>
>



Re: zebra cameo 2 printer by Rick

Rick
Fri Jan 12 16:59:50 CST 2007

Oki doki!

Let me try

Thanks Ginny!!
Rick.

"Ginny Caughey [MVP]" <ginny.caughey.online@wasteworks.com> escribió en el
mensaje news:%23GhCTypNHHA.992@TK2MSFTNGP04.phx.gbl...
> Rick,
>
> I haven't tried that sample, but it may be close enough.
>
> --
> Ginny Caughey
> Device Application Development MVP
>
>
> "Rick" <zatankloz@gmail.com> wrote in message
> news:uthAympNHHA.3552@TK2MSFTNGP03.phx.gbl...
>> Thanks Ginny and Chris, i've found a sample at zebra's site for C#
>>
>> https://support.zebra.com/OA_HTML/csksxvm.jsp?jttst0=6_50258%2C50258%2C-1%2C0%2C&jtfm0=_0_0_-1_-1_f_nv_&etfm1=&jfn=ZGF94E7E2B807E27B4F5861AA8728DA3DCCEA0499A438A3D919EDEDD14BE9F1B638E4F72AB81F7C65585AC249760A5CA623D&oas=Gr-QwIGLPWhDHYyjE6zk_w..&nSetId=16843&nBrowseCategoryId=10066
>>
>> but i suppose it works on desktop winforms (document doesn't mention
>> anything)
>>
>> are raw functions equal when programming for windows ce and windows xp?
>>
>> Regards.
>> Rick.
>>
>>
>> "Rick" <zatankloz@gmail.com> escribió en el mensaje
>> news:uJYrFRpNHHA.780@TK2MSFTNGP03.phx.gbl...
>>> Ginny, just one more question, from my wince c# app can i send to print
>>> my data? or should i use other programming language like vc++?
>>>
>>>
>>> Regards.
>>> Rick
>>>
>>>
>>> "Ginny Caughey [MVP]" <ginny.caughey.online@wasteworks.com> escribió en
>>> el mensaje news:elrtV8ZNHHA.3268@TK2MSFTNGP04.phx.gbl...
>>>> Rick,
>>>>
>>>> You use a serial port to send data to the printer. You may need to
>>>> Sleep() a bit after each line, and you may also need to delay closing
>>>> the port until all the text has been sent. Also make sure that each
>>>> line you send to the printer is terminated with a carriage return-line
>>>> feed pair. If you're sending something more than simple text, then the
>>>> printer control language comes into play to control formatting, fonts,
>>>> etc. Finally, I usually write several empty lines at the end of my text
>>>> to advance the paper so I can read whatever I just sent.
>>>>
>>>> --
>>>> Ginny Caughey
>>>> Device Application Development MVP
>>>>
>>>>
>>>> "Rick" <zatankloz@gmail.com> wrote in message
>>>> news:%23GC5r0ZNHHA.1240@TK2MSFTNGP03.phx.gbl...
>>>>> Hi guys!!
>>>>>
>>>>> Im new in this pocket wonderful world, im begging to develop under
>>>>> windows ce 5.0, now i have to send to print text from a handheld
>>>>> (wince 5) to a bluetooht zebra cameo 2 printer, i dont know how to
>>>>> begin, i've downloaded some pdfs from zebra's site, i wonder if
>>>>> someone can guide me with this.
>>>>>
>>>>> As a simple sample i want to send the text "hello world" to the
>>>>> printer, i've read about CPCL, its simple but i dont have idea how to
>>>>> send that code to the printer, does someone has an example that shows
>>>>> how to do this?
>>>>>
>>>>>
>>>>> Regards.
>>>>> Rick
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>
>>
>>
>>
>
>
>