Barcode Prints much larger from Production

Barcode Prints much larger from Production

You are here:
< Back

The barcode is much larger when printed from the production machine, but prints correctly when printed from the developer machine. This issue is applicable to IDAutomation Windows Forms Barcode Components.

Solution(s):

Possible Solution:
  1. Make sure the default printer on both machines is set to the same printer.
  2. Ensure that the production machine has a default printer assigned to it.
  3. Make sure the image is set to IndependentEMF instead of PictureBox.

    Example VB .NET Source Code:

    '*** Print Bar Code ***
    
    Dim myBarCode As IDAutomation.Windows.Forms.LinearBarCode.Barcode = New IDAutomation.Windows.Forms.LinearBarCode.Barcode()
    
    Dim myImage As System.Drawing.Imaging.Metafile
    
    myBarCode.DataToEncode = InvoiceNumber
    
    myBarCode.Text = InvoiceNumber
    
    myBarCode.RefreshImage()
    
    myImage = myBarCode.IndependentEMF
    
    ev.Graphics.DrawImage(myImage, center - 100, yPos)
    
    myImage = Nothing