Winforms C1Report fill label field with text

Posted by: tom.galczynski on 16 December 2022, 4:06 pm EST

    • Post Options:
    • Link

    Posted 16 December 2022, 4:06 pm EST - Updated 16 December 2022, 4:11 pm EST

    Hello. I am trying to get a label field in a C1Report to justify text (“Nutrition Facts”) across the width of the field so it looks like example1.png. I’ve tried using alignment enum JustMiddle but it looks to be left justified as in example2.png. I’ve also tried CenterMiddle and it justs centers the text, it doesn’t stretch from one end to the other. Is there any way to get the text to “fill” the width of the control?

    Thanks!

  • Posted 19 December 2022, 6:28 am EST

    Hi,

    This can’t be possible to stretch the text over the field area.

    However, in C1FlexReport you can set TextFitMode=AutoCharSpacing to the Text of TextField.

    Please refer here: https://www.grapecity.com/componentone/docs/win/online-flexreport/C1.Win.FlexReport.4.5.2~C1.Win.FlexReport.TextFieldBase~TextFitMode.html

    JFYI, It can’t be stretched, the space will be added between characters. So, that it will adjust to the bound width of TextField.

    Best Regards,

    Nitin

  • Posted 20 December 2022, 8:17 pm EST - Updated 20 December 2022, 9:10 pm EST

    well. got it.

    diggy

Need extra support?

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

Learn More

Forum Channels