or
| Private Sub Report_NeedDataSource(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.NeedDataSource |
| Dim oRowList As New List(Of MyDataRow) |
| oRowList.Add(New MyDataRow("Sezione 1", 1, "Nome del candidato", "Mario")) |
| oRowList.Add(New MyDataRow("Sezione 1", 1, "Cognome del candidato", "Rossi")) |
| oRowList.Add(New MyDataRow("Sezione 1", 1, "Data di nascita", "20/05/1960")) |
| oRowList.Add(New MyDataRow("Sezione 2", 1, "Indirizzo", "Via Milano, 18")) |
| oRowList.Add(New MyDataRow("Sezione 2", 1, "Cap", "20100")) |
| oRowList.Add(New MyDataRow("Sezione 2", 1, "Città ", "Milano")) |
| oRowList.Add(New MyDataRow("Sezione 2", 1, "Provincia", "MI")) |
| oRowList.Add(New MyDataRow("Sezione 3", 1, "Animale preferito", "")) |
| oRowList.Add(New MyDataRow("Sezione 3", 2, "Gatto", "X")) |
| oRowList.Add(New MyDataRow("Sezione 3", 2, "Cane", "")) |
| oRowList.Add(New MyDataRow("Sezione 3", 2, "Pappagallo", "X")) |
| CType(sender, Telerik.Reporting.Processing.Report).DataSource = oRowList |
| End Sub |
| Private Sub DetailSection1_ItemDataBinding(ByVal sender As Object, ByVal e As System.EventArgs) Handles DetailSection1.ItemDataBinding |
| Dim ProcessingDetail As Telerik.Reporting.Processing.DetailSection = CType(sender, Telerik.Reporting.Processing.DetailSection) |
| Dim oDataRow As MyDataRow = CType(ProcessingDetail.DataObject.RawData, MyDataRow) |
| If oDataRow.Type = 2 Then |
| T_Label.Size = New SizeU(New Unit(18, UnitType.Cm), New Unit(0.5, UnitType.Cm)) |
| T_Label.Location = New PointU(New Unit(1, UnitType.Cm), New Unit(0, UnitType.Cm)) |
| T_Text.Style.BorderColor.Default = Color.Black |
| T_Text.Style.BorderStyle.Default = BorderType.Solid |
| T_Text.Style.BorderWidth.Default = New Unit(2, UnitType.Point) |
| T_Text.Size = New SizeU(New Unit(0.5, UnitType.Cm), New Unit(0.5, UnitType.Cm)) |
| T_Text.Location = New PointU(New Unit(0, UnitType.Cm), New Unit(0, UnitType.Cm)) |
| T_Text.Style.TextAlign = HorizontalAlign.Center |
| T_Text.Style.Font.Bold = True |
| End If |
| End Sub |
| public void RadChart_PrePaint1(object sender, EventArgs e) |
| { |
| RadChart.PlotArea.YAxis.SetItemLabel(0, ""); |
| RadChart.PlotArea.YAxis.SetItemLabel(7, ""); |
| } |
Hello,
as I know at this time the page numbering is not working in Excel export.
I've a Textbox like with this expression "=PageNumber + ' / ' + PageCount" and when I export to Excel I've the text "1/1" on every page.
I'd like to keep the page numbering in other format so I don't want to remove it from my report.
Do you have a solution to remove it from Excel and keeping it in other format ?
It would be helpfull to have a parameter (in rendering parameters) to tell telerik reporting to ignore or not display or not render the field with PageCount or PageNumber when exporting to Excel.
Regards
Gilles