Kev
|
Hi,
My company is planning to upgrade to the next version (we're awaiting the final paperwork from our own company in order to be able to make the purchase). However, while the paperwork is being taken care of, I want to finish my application, and when we finally get the required dlls, just quickly replace them =)
As to which version we currently have ;
"idautomation.linearservercontrol" (ASP.NET Barcode Generation Server Control)
Runtime version: v1.1.4322
Version: 2009.0.0.0
I tried using the demo dll, and I found 1 bug;
C#
private void bc1()
{
var bc = new IDAutomation.LinearServerControl.LinearBarcode()
{
SymbologyID = LinearBarcode.Symbologies.Ean13,
DataToEncode = "238668063159",
ImageResolution = 300,
ShowText = true,
BarHeightCM = "1.524",
TopMarginCM = "0",
LeftMarginCM = "0",
CheckCharacter = true,
NarrowToWideRatio = "3",
XDimensionMILS = "2.5"
};
var bmp = bc.GetBitmapImageForBinaryStream();
bmp.Save(@"C:Users...Desktopean13.png", ImageFormat.Png);
}
-> The resulting barcode has some issues; not all characters are under the barcode and some characters are even under the demo text and outside the image itself.
*Note, for my final application the XDimensionMILS will be in the [14,16] range, which doesn't seem to have the same issue, but I still wanted to make you aware of this issue.
-----
The following code was the code that produced the clipping problem in the dll we currently possess:
private void bc2()
{
var bc = new IDAutomation.LinearServerControl.LinearBarcode()
{
SymbologyID = LinearBarcode.Symbologies.Interleaved25,
DataToEncode = "00030315",
ImageResolution = 300,
ShowText = true,
BarHeightCM = "1.524",
TopMarginCM = "0",
LeftMarginCM = "0",
CheckCharacter = false,
NarrowToWideRatio = "3",
XDimensionMILS = "2.5"
};
var bmp = bc.GetBitmapImageForBinaryStream();
bmp.Save(@"C:Users...Desktopint2of5.png", ImageFormat.Png);
}
This issue doesn't occur in the demo dll, however, the text under the barcode is centrally aligned, and the printer I'm trying to simulate has the text aligned to the left, is there any way to achieve this?
--
I have one final question; what property sets the distance between the barcode itself and the text from the barcode? (if any such property exists).
Thank you for your fast reply!
Posted 10.3 year(s) ago
|