I am planning to implement your barcode functionality for the first time and I am getting the following error when writing a barcode:
An error occurred.
Description: Could not load type 'GdPicture.NET.Barcode.Writer.Barcode' from assembly 'GdPicture.NET.barcode.1d.writer, Version=2.0.0.0, Culture=neutral, PublicKeyToken=5e88f4badea0ca2b'.
Source: GdPicture.NET
I am using the 32bit version and have my app set to compile x86. Here is my code:
GdPicture.GdPictureImaging oGdPictureImaging = new GdPicture.GdPictureImaging();
oGdPictureImaging.SetLicenseNumberUpgrade(ConfigurationManager.AppSettings["GDPicture_LicenseKey_Old"].ToString(), ConfigurationManager.AppSettings["GDPicture_LicenseKey"].ToString());
int imageId = oGdPictureImaging.CreateNewGdPictureImage(250, 100, System.Drawing.Imaging.PixelFormat.Format24bppRgb, System.Drawing.Color.White);
if (imageId > 0)
{
// write barcode in new image
oGdPictureImaging.Barcode1DWrite
(
imageId,
GdPicture.Barcode1DWriterType.Barcode1DWriterCode39,
"TEST-12345",
0,
0,
250,
80,
System.Drawing.Color.Black,
GdPicture.BarcodeAlign.BarcodeAlignCenter
);
oGdPictureImaging.SaveAsPNG(imageId, @"C:\RCbarcode.png");
}
