Hi,
Here is some sample code that ought to work (IMHO). Can you explain why it does not?
Thanks!!
Tom
Here is some sample code that ought to work (IMHO). Can you explain why it does not?
Thanks!!
Tom
DataSet ds = new DataSet(); |
ds.Tables.Add(); |
ds.Tables[0].Columns.Add("a"); |
ds.Tables[0].Columns.Add("b"); |
ds.Tables[0].Rows.Add("a1", "b1"); |
ds.Tables[0].Rows.Add("a2", "b2"); |
ds.Tables[0].Rows.Add("a3", "b3"); |
Telerik.Reporting.TextBox tb = new Telerik.Reporting.TextBox(); |
Report1 r = new Report1(); |
r.DataSource = ds.Tables[0]; |
tb.CanGrow = true; |
tb.Value = "=a"; |
tb.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(1.625, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.5, Telerik.Reporting.Drawing.UnitType.Inch)); |
tb.Name = "a"; |
tb.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(1.625, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.25, Telerik.Reporting.Drawing.UnitType.Inch)); |
tb.Style.BackgroundColor = System.Drawing.Color.White; |
r.Items.Add(tb); |
tb = new Telerik.Reporting.TextBox(); |
tb.CanGrow = true; |
tb.Value = "=b"; |
tb.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(3.625, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.5, Telerik.Reporting.Drawing.UnitType.Inch)); |
tb.Name = "b"; |
tb.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(1.625, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.25, Telerik.Reporting.Drawing.UnitType.Inch)); |
tb.Style.BackgroundColor = System.Drawing.Color.White; |
r.Items.Add(tb); |
telerik.Report = r; |