Barcode Prints much larger from Production
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:
- Make sure the default printer on both machines is set to the same printer.
- Ensure that the production machine has a default printer assigned to it.
- 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