Click here to Skip to main content
15,748,615 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Hi All,

I have a rdlc report which uses a code 39 barcode font.
the report displays correctly on my dev pc and the scanner is able to scan the barcode.
however when i copy the application to a windows 2008 server, i have noticed that the display is slightly different in terms of the lines/bars.

what will cause this as the scanner cannot read the ones from the t/server.

i have installed the correct driver and fonts onto the server.

help please!


is used the below free barcode lib.
created a image parameter and passed through the bytes.

works well... but prefer to use crystal reports though.


Dim b As New BarcodeLib.Barcode

Dim TYPE As BarcodeLib.TYPE
TYPE = BarcodeLib.TYPE.CODE39

Dim IMG As Image
IMG = b.Encode(TYPE, "Lot", Color.Black, Color.White, 200, 50)
Dim ms As New IO.MemoryStream()
IMG.Save(ms, System.Drawing.Imaging.ImageFormat.Png)
Dim bytes = ms.ToArray()

Me.dsFGLabels.vw_FGLabels.Rows(0).Item("TEST") = bytes
Share this answer
Member 12360367 24-May-16 14:17pm    
But this will drop bar code image quality.
Jawad Ali Maken 10-Feb-17 23:36pm    
I used your method but i got the following three errors
1. Error 12 There is an error on line 2 of custom code: [BC30451] 'BarcodeLib' is not declared. It may be inaccessible due to its protection level.
2. Error 10 Error while loading code module: ‘BarcodeLib, Version=, Culture=neutral, PublicKeyToken=null’. Details: Could not load file or assembly 'BarcodeLib, Version=, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
3. Error 11 Error in class instance declaration for class BarcodeLib.Barcode: [BC30002] Type 'BarcodeLib.Barcode' is not defined.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900