Barcode field width

Posted by: Jchan on 1 August 2018, 7:01 am EST

    • Post Options:
    • Link

    Posted 1 August 2018, 7:01 am EST

    I am try to create one barcode that it can be match my current barcode width that generate from other software.

    I am using Ansi39 Barcode and it can’t display the barcode when the width is smaller than 1400. Do we have any limitation on barcode width in C1 Report ?

    I would like keep the same size (about 1150 width) compare with my other barcode I currently use.

    I use 9 digits be my barcode and I tired other type of barcode from C1 report but none of work perfectly.

    Hopefully you can help me with it

    Thanks

  • Posted 1 August 2018, 8:56 pm EST - Updated 3 October 2022, 11:12 pm EST

    Hi,

    You can set the BarcodeOptions.SizeOptions.ModuleSize property in order to ensure that the barcode renders with the specified width (1150) with 9 digits in text. The attached screenshot shows where you can find this property.

    In case the issue persists with Ansi39 or any other barcode, please share your concern and I will be happy to help!

    Best Regards,

    Esha

  • Posted 3 August 2018, 2:11 am EST - Updated 3 October 2022, 11:12 pm EST

    Hi Esha,

    I updated the ModuleSize = 8 then it fit the width I want and I can scan it from the preview print out. But when I use the same c1 report xml file from my winform. The barcode looks different and won’t scan

    Attached the sample, The left hand side is preview (scanned) and right hand side from my winform (won’t scan)

  • Posted 5 August 2018, 8:06 pm EST

    Hello,

    Please refer the attached sample wherein the demo report is included. The same report is previewed through the C1ReportDesigner as well the application. Further, the barcodes are scanned (using multiple barcode scanners) after print of the report is taken from the two sources. The scanning is carried out just fine from the two prints.

    Can you please try the same with the latest builds (http://prerelease.componentone.com/dotnet40/c1winforms/2018-t2/C1WinForms.4_4.0.20182.314.zip ) and let me know if the issue persists?

    In case it does, kindly share the system environment details at your end and the sample with which the issue is observed. You can also modify the attached sample.

    Best Regards,

    Esha

  • Posted 20 August 2018, 12:26 am EST

    Good morning Esha,

    I updated my report to the latest but I still getting the same issue, but I noticed that actually if I running the report on preview and exported to PDF format then it will be scan if I print it out.

    Do you able to print and scan from the PDF format as well?

    In my code, I also display the report by using render() function and I believe it convert it to PDF format? So maybe there has same problem to generate the barcode correctly.

    If I don’t use the ModuleSize and let it print in wider length then it can print without problem.

    Thanks for your help.

    Jeremy

  • Posted 20 August 2018, 8:30 pm EST

    Hello Jeremy,

    Can you please share the details of the scanner(s) you use to read the barcode, along with your printer details?

    It is important that we both be on the same page before forwarding the issue to the development team, if the need arises.

    Best Regards,

    Esha

  • Posted 28 August 2018, 12:31 am EST

    Hi Esha,

    Attached the sample report from me and my scanner is Honeywell 3800g and Printer are HP laser jet pro 500 and konica minolta 951

    Both printer are fine if I print directly from preview but it doesn’t work if I save as PDF and then print.

    Here is my detail version :

    C1ReportDesigner Application (32 bit mode):

    C1ReportDesigner, Version 4.0.20182.314

    C1.C1Pdf.4, Version 4.0.20182.314

    C1.C1Report.4, Version 4.0.20182.314

    C1.C1Report.4.Design, Version 4.0.20182.314

    C1.C1Report.CustomFields.4, Version 4.0.20182.314

    C1.C1Zip.4, Version 4.0.20182.314

    C1.Win.4, Version 4.0.20182.314

    C1.Win.BarCode.4, Version 4.0.20182.314

    Thanks again.

    Jeremy

  • Posted 28 August 2018, 12:39 am EST

  • Posted 28 August 2018, 4:54 pm EST

    Hello Jeremy,

    Thank you for sharing your report and the information.

    As you might be aware that C1Report is in maintenance mode and C1FlexReport is our flagship reporting tool (https://www.grapecity.com/en/forums/winforms-edition/c1report-is-now-obsolete-t), I converted your report file to .flxr and observed the scenario with it. The barcode from direct print of the report could also be scanned along with the print from the exported pdf file.

    Please check the attached flxr file (contains no connection string) at your end or convert the xml on your own. Share the observations with us.

    Note: https://www.grapecity.com/en/blogs/migrating-from-c1report-to-flexreport

    Regards,

    Esha

    Sample.zip

  • Posted 31 August 2018, 1:16 am EST

    Hi Esha,

    I converted my c1report as well as my winform to use the new C1FlexReport and everything work fine now

    thank you for your help

  • Posted 31 August 2018, 1:16 am EST

    Hi Esha,

    I converted my c1report as well as my winform to use the new C1FlexReport and everything work fine now

    thank you for your help

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels