Dim report As Telerik.Reporting.Report = New Report()
report.DataSource = myDataSet
ReportViewer1.Report = report
ReportViewer1.DataBind()
So, my question is, how do I specify which report to use? We have hundreds of reports and would like to stick with our convention of having one aspx page that includes the report viewer. The included VB.ReportLibrary would then have the report templates.
Thank You for your help
item.Appearance.FillStyle.FillType = Telerik.Reporting.Charting.Styles.FillType.Image; |
item.Appearance.FillStyle.FillSettings.ImageDrawMode = Telerik.Reporting.Charting.Styles.ImageDrawMode.Align; |
item.Appearance.FillStyle.FillSettings.BackgroundImage = "/Media/status/whiteStrike.gif"; |
Hi,
I am working on Telerik Reporting. I am trying to design a report which has a subreport.
I have taken a report item >> assigned a query in the report wizard >> assigned the fields in the detail section of main report. In the properties of the main report i have given a parameter and filter properties. Now i dragged a subreport item into the detail section.
Designed another report (parameter and filter properties were given) in the same above way and assigned this report as a ReportSource to the subreport (in the main report).
Now i am assigning a dataset to the datasource of main report and subreport. Below two lines were written in the NeedDataSource event of Subreport for Conditional basis.
" Dim
item As Processing.ReportItemBase = DirectCast(sender, Processing.ReportItemBase)
Me.SubReport1.Parameters(0).Value = item.DataObject("CF ID") "
When i am trying to generate the report i am facing an error saying that -
" An error has occured while processing textbox 'textbox6'.
The expression contains object CF_Name that is not defined in the current context. "
Here in the design all the fields were assigned through the Query from the wizard.
Can you please explain me what could be the mistake in this process and it would be very helpfull if you can provide a sample application or a doucument (I have done the above process following the guide in telerik site) regarding this "Master - Child report."
This is a very very urgent requirement. Thank you.
Regards,
Prasad.
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 |