Error entering barcode field in the report

Posted by: a.callegari on 27 November 2018, 6:29 am EST

    • Post Options:
    • Link

    Posted 27 November 2018, 6:29 am EST

    I installed last release of C1Reports Designer and in editing of reports created with the previous version in the fields with barcode I get this error:

    Barcode [ALFA2] can not be drawn in specified bounds.

    What could be the problem ?

    Thanks for your help

  • Posted 27 November 2018, 6:49 am EST

    the same error is also created by C1FlexReportDesigner

  • Posted 28 November 2018, 5:48 am EST

    Hello,

    Please note that this error generally occurs when barcode fields with zero height or width are being used.

    For the field containing the barcode, please set the CanGrow and CanShrink property to True along with setting some Width and Height. Now, preview your report.

    Further, I have attached a report created with C1ReportDesigner of 4.0.20182.320 version. This report is previewed correctly in the latest 4.0.20183.338 C1ReportDesigner and C1FlexReportDesigner. Please inform if this works well for you. You can modify the same as per your convenience.

    In case the issue persists, kindly share your report so that I can preview the same and assist you further.

    Regards,

    Esha

    Barcode_TestReport.zip

  • Posted 28 November 2018, 10:25 am EST

    Thanks, now the barcodes are displayed, but I have a problem with the previous version I did not have.

    With CanGrow and CanShrink property to True the barcode increases in height and I can not manage it even with the Height property.

    Obviously the number of printed records decreases.

    Look at the attached example

  • Posted 29 November 2018, 2:16 am EST

    Hello,

    That’s the feature of the CanGrow and CanShrink properties to adjust control’s size to fit any amount of data. The controls that follow it are displayed after the long field is rendered. This does not decrease the number of records being rendered.

    As per the documentation:

    http://help.grapecity.com/componentone/NetHelp/FlexReport/webframe.html#C1.Win.FlexReport.4~C1.Win.FlexReport.Field~CanGrow.html

    Either set some fixed Height for the field (and set the CanGrow, CanShrink properties to False) or set these properties in order to automatically adjust the size.

    I could not find your attachments. Kindly attach them again in zip format. Also, share the previous and latest version numbers that you use.

    Best Regards,

    Esha

  • Posted 29 November 2018, 4:01 am EST

    First of all I thank you for your help, as far as the attachment is concerned, I could not load it.

    For versions: C1ReportDesigner, Version 4.0.20183.338

    the previous version of C1ReportDesigner I do not remember but it was the last one of 2017.

    The attachment contains the print of records where with CanGrow and CanShrink to true I have 6 records per page and printing with the previous version where I have 10 of records per page.

    The height of the barcode field must remain 365 because 10 records per page must be printed

    CanGrow_CanShrink.zip

  • Posted 3 December 2018, 2:04 am EST

    Hello,

    Thanks for sharing the pdf with the screenshots.

    The attached report is created with C1ReportDesigner version 4.0.20173.286. Even with this designer, setting any BarCode type with the field’s fixed Height as 365, gives rendering issues because of the reasons stated above (height is too small to render the barcode in the field).[See “C1Report_Original.png”]

    Setting the CanGrow and CanShrink to True will render the barcodes on the report without any issues.

    When the fields are rendered such that no extra space is left on the current page, they are bound to flow on to the next page. Even setting the report’s RecordsPerPage property cannot stop that. [See “RecordsPerPage.png”]

    However, you can reduce the Detail section’s height to accommodate more of the fields on a page while rendering, thereby leaving little gap among consecutive fields. This is all that can be done to avoid the records from rendering on the next page. Please adjust the same for your report.

    Regards,

    Esha Report Example.zip

Need extra support?

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

Learn More

Forum Channels