How to insert cell values code behind
Posted: Wed Jul 24, 2013 8:25 pm
Hello,
I've attempted to insert text values into a table dynamically without DataSource and i didnt find the correct attribute that i'll fill.
Someone could help me ?
obs:
My cell code:
Stimulsoft.Report.Components.Table.StiTableCell Table1_Cell1 = new Stimulsoft.Report.Components.Table.StiTableCell();
Table1_Cell1.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(0, 0, 4.8, 0.8);
Table1_Cell1.ID = 1;
Table1_Cell1.JoinCells = new int[0];
Table1_Cell1.Name = "Table1_Cell1";
Table1_Cell1.Restrictions = (((Stimulsoft.Report.Components.StiRestrictions.None | Stimulsoft.Report.Components.StiRestrictions.AllowMove)
| Stimulsoft.Report.Components.StiRestrictions.AllowSelect)
| Stimulsoft.Report.Components.StiRestrictions.AllowChange);
Table1_Cell1.Border = new Stimulsoft.Base.Drawing.StiBorder(Stimulsoft.Base.Drawing.StiBorderSides.All, System.Drawing.Color.FromArgb(255, 105, 105, 105), 1, Stimulsoft.Base.Drawing.StiPenStyle.Solid, false, 4, new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.FromArgb(255, 105, 105, 105)), false);
Table1_Cell1.Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Transparent);
Table1_Cell1.Font = new System.Drawing.Font("Arial", 9F);
Table1_Cell1.Guid = null;
Table1_Cell1.Indicator = null;
Table1_Cell1.Interaction = null;
Table1_Cell1.Margins = new Stimulsoft.Report.Components.StiMargins(0, 0, 0, 0);
Table1_Cell1.TextBrush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black);
Table1_Cell1.TextOptions = new Stimulsoft.Base.Drawing.StiTextOptions(false, false, false, 0F, System.Drawing.Text.HotkeyPrefix.None, System.Drawing.StringTrimming.None);
I've attempted to insert text values into a table dynamically without DataSource and i didnt find the correct attribute that i'll fill.
Someone could help me ?
obs:
My cell code:
Stimulsoft.Report.Components.Table.StiTableCell Table1_Cell1 = new Stimulsoft.Report.Components.Table.StiTableCell();
Table1_Cell1.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(0, 0, 4.8, 0.8);
Table1_Cell1.ID = 1;
Table1_Cell1.JoinCells = new int[0];
Table1_Cell1.Name = "Table1_Cell1";
Table1_Cell1.Restrictions = (((Stimulsoft.Report.Components.StiRestrictions.None | Stimulsoft.Report.Components.StiRestrictions.AllowMove)
| Stimulsoft.Report.Components.StiRestrictions.AllowSelect)
| Stimulsoft.Report.Components.StiRestrictions.AllowChange);
Table1_Cell1.Border = new Stimulsoft.Base.Drawing.StiBorder(Stimulsoft.Base.Drawing.StiBorderSides.All, System.Drawing.Color.FromArgb(255, 105, 105, 105), 1, Stimulsoft.Base.Drawing.StiPenStyle.Solid, false, 4, new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.FromArgb(255, 105, 105, 105)), false);
Table1_Cell1.Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Transparent);
Table1_Cell1.Font = new System.Drawing.Font("Arial", 9F);
Table1_Cell1.Guid = null;
Table1_Cell1.Indicator = null;
Table1_Cell1.Interaction = null;
Table1_Cell1.Margins = new Stimulsoft.Report.Components.StiMargins(0, 0, 0, 0);
Table1_Cell1.TextBrush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black);
Table1_Cell1.TextOptions = new Stimulsoft.Base.Drawing.StiTextOptions(false, false, false, 0F, System.Drawing.Text.HotkeyPrefix.None, System.Drawing.StringTrimming.None);