How to set the size of Telerik.Reporting.TextBox in report we create dynamically ?

0 Answers 12 Views
Report Designer - Web Report Viewer - ASP.NET
M Kumar
Top achievements
Rank 1
M Kumar asked on 11 Oct 2021, 05:34 AM

Hi ,

           we are creating dynamic report in that one of the columns contain 100 and above characters . so we set text wrap as true.

Result as 

If we set false for text wrap, then result as below

data not show as fully, 

Below the code that we create dynamic report Dim detailsTxt As New Telerik.Reporting.TextBox
                detailsTxt.Size = New SizeU(Unit.Inch(col.ColumnName.Length), Unit.Inch(0.2))
                detailsTxt.Location = New Drawing.PointU(Unit.Inch(iniLeft), Unit.Inch(0.01))
                detailsTxt.Style.Font.Size = New Unit(10)
                detailsTxt.Style.VerticalAlign = VerticalAlign.Middle
                detailsTxt.Style.TextAlign = HorizontalAlign.Left
                detailsTxt.TextWrap = False
                detailsTxt.StyleName = "Data"
                detailsTxt.Style.BorderStyle.Default = Telerik.Reporting.Drawing.BorderType.Solid
                detailsTxt.CanGrow = True
                detailsTxt.KeepTogether = True
                detailsTxt.Multiline = True
                ' detailsTxt.Format = Format("{0:n}")
               detailsTxt.Value = "=Fields.[" + col.ColumnName.ToString & "]"

What we expect 

Pls reply with any solution, we are using Telerik version is  , is it new version fixed this bug ?


No answers yet. Maybe you can help?

Report Designer - Web Report Viewer - ASP.NET
Asked by
M Kumar
Top achievements
Rank 1
Share this question