New User? Sign Up  |  Sign In  |  Help
Barcode support and
tutorials from IDAutomation
and the community.
Click for the BBB Business Review of this Computers Hardware, Software & Services in Tampa FL
Resolved Questions

.Net form Linear control

The Barcode height on code128 linear (BarHeightCM) is not always displayed the same on different computers when using the .NET Linear Forms Control. What is the reason and how to solve it?

Code-->
LinearCode.BarHeightCM = "0.5";

On some print previews, it is displayed and printed as 0.7 cm on others only 0.5cm


03-05-12     11.9 year(s) ago    

  Report Abuse

 

Ben

Best Answer

The only property that affects the barcode's height is the property BarHeightCM. Your computer's regional settings should not affect the control--neither should any other fonts that are installed.

If it is a setting on your machine, unfortunately, I could not provide any assistance to correct the issue as it would not specifically be related to the control. I am also not able to reproduce the issue on several computers now running WinXP to Win 7 (printing on laser and thermal printers).

If you would like to send a PDF of the barcode to admin@idautomation.com, I could take a look at the barcode.

Instead of the Forms Control, you may want to try the barcode font to generate Code 128.

https://www.idautomation.com/barcode-fonts/code-128/

Posted 11.9 year(s) ago

(0)
(0)
  Report Abuse
 
Find Interesting
 
Email to Others
 
Bookmark
 
Subscribe to Answer Alert
No comments yet.     Be the first to comment.
Other Answers (6)
Hi Ben
This does not help at all. I wonder what can affect the height of the linear barcode.
Is it possible that preinstalled barcode fonts could have side effects?
Is there a regional setting that affects the height of the linear barcode?
Thank a lot for your help!
Reto

Posted 11.9 year(s) ago

(0)
(0)
   Report Abuse
Yes, you can modify the resolution. Here are the properties for the control:
https://www.idautomation.com/barcode-components/windows-forms-control/user-manual.html#Properties_and_Methods

Posted 11.9 year(s) ago

(0)
(0)
   Report Abuse
No, the problem is that we design the label on an office computer and the linear code height is then different on the machine in production!
Is there a resolution parameter to take care of?

Posted 11.9 year(s) ago

(0)
(0)
   Report Abuse
Unfortunately, it is difficult to say. I cannot reproduce the issue--when printing to my HP Brother laser, it is never off by the amount of .2 CM. Is there a requirement for 0.5 CM?

Posted 11.9 year(s) ago

(0)
(0)
   Report Abuse
Hi Ben

thanks for your answer.
It does not matter if I select a laser printer or another printer, the height of the linear barcode is always less than it should be on a production machine.
Is it possible that some regional settings could affect the height???
Here is some of my used code for the linear Barcode:


LinearCode.BarHeightCM = fHeightBarcode.ToString().Replace(",", ".");



//Do not show the text:
LinearCode.ShowText = false;
//With no border
LinearCode.TopMarginCM = "0.01";
LinearCode.LeftMarginCM = "0.01";

if (this.lstJv[0].CodeLinear_UseCheckCharacter == false)
{
LinearCode.CheckCharacter = false;
}
else
{
LinearCode.CheckCharacter = true;
}
LinearCode.RefreshImage();
imageCode = LinearCode.IndependentEMF;
//Creates the image at defined position:
grfx.DrawImage(imageCode, fPosX +(float)this.lstJv[0].CodeLinear_OffsetX, fPosY + (float)this.lstJv[0].CodeLinear_OffsetY);

Posted 11.9 year(s) ago

(0)
(0)
   Report Abuse
What type of printers are being used to print the barcode? You could make sure the drivers are updated for the printers. I am unable to reproduce the error when printing to a thermal or laser printer.

Posted 11.9 year(s) ago

(0)
(0)
   Report Abuse
Email this question link to friends
You must enter an email address, if name is entered or vice-versa for each friend.
Friend #1 -
Friend #2 -
Friend #3 -
Friend #4 -
Friend #5 -
  Your comment on this question
  |         |  
bold  italic  underline  strike       big  small       superscript  subscript 
  Allows to add a link. Added links would only be converted to actual clickable link, when the domain of the link is white-listed by administrator.
Caption :
Link URL :
(Must starts with "http://")
Add  |   Cancel
  Allow to insert an image. Must be among the following file types - *.jpg, *.gif, *.png & *.bmp.
Image Url :   Upload New
(Image url must always starts with " http:// ")
Width : pixels
(Must not be greater than 450px. Enter 0px for no resize)
Add  |   Cancel
  Allow to insert YouTube video. Insert the video embed code.
Embed Code :
Add  |   Cancel
Up to 5000 Characters are allowed. Current Count: 0
  Your comment on this answer
  |         |  
bold  italic  underline  strike       big  small       superscript  subscript 
  Allow you to add a link. Added links would only be converted to actual clickable link, when the domain of the link is white-listed by administrator.
Caption :
Link URL :
(Must start with "http://" or "https://")
Add  |   Cancel
  Allow to insert an image. Must be among the following file types - *.jpg, *.gif, *.png & *.bmp.
Image Url :   Upload New
(Image url must always start with "http://" or "https://")
Width : pixels
(Must not be greater than 450px. Enter 0px for no resize)
Add  |   Cancel
  Allow to insert YouTube video. Insert the video embed code.
Embed Code :
Add  |   Cancel
Up to 5000 characters are allowed. Current Count: 0

You may answer and comment on any thread according to the Terms and Conditions.

 © Copyright 2021 IDAutomation.com, Inc., All Rights Reserved. Legal Notices.

 Barcode Fonts | Components | Scanners | Support | Contact Us
Training Videos on YouTube Join us on Google Plus Join us on LinkedIn Follow us on Twitter Like us on Facebook