Solved

How can print labels with barcode using VB.NET Compact Framework

Posted on 2010-08-16
4
1,260 Views
Last Modified: 2012-06-27
I need to print labels with text and barcode from Hand Held application written in VB.NET.

I'm using System.Net.Sockets to send document to a printer. But I cannot neither manipulate with font nor print barcode.

Could you please point me to a right direction what do I need to get it done.

Thanks in advanced for your answers.

Gina
0
Comment
Question by:krasit
  • 2
4 Comments
 
LVL 11

Expert Comment

by:ICaldwell
ID: 33448792
I do this at my company... I suggest using a web service, that way the handheld can send the command to the service, and the actual render and printout goes from one of your severs.  In my case we have so many that I have the web service which queues the requests up and a Windows Services check's and processes the queue every 1 second with multiple threads.....

Hope this helps
0
 
LVL 11

Expert Comment

by:ICaldwell
ID: 33448824
If you are going directly from the handheld to the printer and its not on the same network then thats different, we do that too but its a little harder to do...  Its also very specific to the device and printer, I would suggest in that case looking up the manufacture info, usually most of them have some example code in a few languages...
0
 
LVL 24

Accepted Solution

by:
alexey_gusev earned 500 total points
ID: 33448853
first of all, what kind of printer are you using?

it is important because some portable printers (like Zebra or Cameo) have their own language where you can command it to print barcode for you, ie you define a label and then send it to the printer - and it prints it :)

I've used such printers via serial or network connection - worked just fine.

if you need to print to arbitrary printer, then it becomes more complicated. I reckon that the happy times of dos-like printers are over, so usually each modern printer understands PCL language (that is, if you need something but the text). To save the effort, if I were you, I'd simply buy some ready-made component, like

http://www.pocketgear.com/en/gbp/4207301,product-details.html?M2DPId=100017
http://fieldsoftware.com/

and use them in my app.
0
 

Author Closing Comment

by:krasit
ID: 33454791
Thank you Aleksey,

We'll be using Zebra printer for this. And this is our first HH application with print option

Gina Solovyev
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

When I was a beginner in Windows Mobile programming, even for small test I used to create a single MFC dialog-based application with one button, and put my test code in the OnLButtonDown method. For Pocket PC it worked fine, on some Windows CE d…
Once again I push the limits of my phone.  An introduction to the Android Google Now Launcher.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now