Click here to Skip to main content
Rate this: bad
good
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.
 

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

  Print Answers RSS
0 OriginalGriff 370
1 Prakriti Goyal 177
2 Sergey Alexandrovich Kryukov 155
3 jlopez788 134
4 _Amy 110
0 OriginalGriff 6,762
1 Sergey Alexandrovich Kryukov 5,539
2 Maciej Los 3,479
3 Peter Leow 3,323
4 DamithSL 2,505


Advertise | Privacy | Mobile
Web02 | 2.8.140721.1 | Last Updated 30 Jan 2013
Copyright © CodeProject, 1999-2014
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