Click here to Skip to main content
11,790,613 members (60,661 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C# .NET
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.[^]

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:
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;


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..Smile | :)
Posted 27-Dec-12 19:08pm
Edited 27-Dec-12 19:09pm

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

  Print Answers RSS
0 OriginalGriff 1,154
1 Maciej Los 825
2 KrunalRohit 686
3 ppolymorphe 660
4 CPallini 621

Advertise | Privacy | Mobile
Web04 | 2.8.1509028.1 | Last Updated 30 Jan 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100