Click here to Skip to main content
15,886,069 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi all,
I m using some barcode dot net SDK's for generating barcode PDF 417.
I downloaded different SDK's from internet.
there is one SDK of barcode lib downloaded from below link.


http://www.barcodelib.com/barcode_software/pdf417.html[^]

when i run their sample application exe and give some input
it is generating output of width and height- 208,185 respectively.
I wanted to show screenshot but there is no option to upload the images.

and when i m using same input in dot net code with same parameter it is giving me output image having width and height of 562,12 respectively.

I have used this code for genrating barcode:
C#
public static void barcodeLib()
   {


     
       string abcstr =   File.ReadAllText(@"D:\Temp.txt");

       BarcodeLib.Barcode.PDF417 pdf = new BarcodeLib.Barcode.PDF417();
       pdf.UOM = UnitOfMeasure.PIXEL;
       pdf.Data = abcstr;
       pdf.BarWidth = 0.0104F;
       pdf.BarRatio =3;

       pdf.ECL = BarcodeLib.Barcode.PDF417ErrorCorrectionLevel.Level_2;
       pdf.ProcessTilde = true;
       pdf.Columns = 7;
       pdf.Rows = 0;
       pdf.Resolution = 96;

       pdf.ImageFormat = ImageFormat.Gif;
       pdf.drawBarcode(@"D:\Barcodelib.Gif");


   }


my question is i am not able to understand why width is differing when i am running from code and when i am running through exe.
And this is happening with every SDK i have downloaded.
I am enable to find my mistake..
please help.
Thank in advance..
god bless u all..:)
Posted
Updated 27-Dec-12 19:09pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900