hi i create dynamic report from the follwing code
all fine the pbm is when i export the report got problem
when i export report to xls the header is totally black
if i export the reportt to csv the alignment and header is repeated
if i export to pdf the header background color missing
is there any way to create dynamic reports
cs the column name and table name is dynamic and the column count is dynamic
all fine the pbm is when i export the report got problem
when i export report to xls the header is totally black
if i export the reportt to csv the alignment and header is repeated
if i export to pdf the header background color missing
If HttpContext.Current.Session("DynamicReportDatas") IsNot Nothing Then Dim datas As DataTable = HttpContext.Current.Session("DynamicReportDatas") Me.Table1.DataSource = datas Dim textboxGroup As Telerik.Reporting.HtmlTextBox Dim textBoxTable As Telerik.Reporting.HtmlTextBox Table1.ColumnGroups.Clear() Table1.Body.Columns.Clear() Table1.Body.Rows.Clear() Dim ColCount As Integer = datas.Columns.Count For i As Integer = 0 To ColCount - 1 Dim tableGroupColumn As New Telerik.Reporting.TableGroup() Table1.ColumnGroups.Add(tableGroupColumn) 'table1.Body.Columns.Add(new Telerik.Reporting.TableBodyColumn(Unit.Inch(1))); textboxGroup = New Telerik.Reporting.HtmlTextBox() 'textboxGroup.Style.BorderColor.[Default] = Color.Black 'textboxGroup.Style.BorderStyle.[Default] = BorderType.Solid textboxGroup.Value = datas.Columns(i).ColumnName textboxGroup.Size = New SizeU(Unit.Inch(1.4), Unit.Inch(0.2)) textboxGroup.Style.BackgroundColor = Color.FromName("#79A7E3") textboxGroup.Style.Font.Bold = True textboxGroup.Style.Font.Size = New Unit(10) textboxGroup.Style.VerticalAlign = VerticalAlign.Middle textboxGroup.Style.TextAlign = HorizontalAlign.Left tableGroupColumn.ReportItem = textboxGroup textBoxTable = New Telerik.Reporting.HtmlTextBox() 'textBoxTable.Style.BorderColor.Default = Color.Black; 'textBoxTable.Style.BorderStyle.Default = BorderType.Solid; textBoxTable.Value = "=Fields.[" + datas.Columns(i).ColumnName & "]" textBoxTable.Size = New SizeU(Unit.Inch(1.4), Unit.Inch(0.3)) textBoxTable.Style.VerticalAlign = VerticalAlign.Middle textBoxTable.Style.TextAlign = HorizontalAlign.Left Table1.Body.SetCellContent(0, i, textBoxTable) Table1.Items.AddRange(New ReportItemBase() {textBoxTable, textboxGroup}) Next End Ifis there any way to create dynamic reports
cs the column name and table name is dynamic and the column count is dynamic