Hi,
I have gone through online documentation of Telerik Reporting tool for Silverlight. The documentation mentions that Silverlight Report Viewer would reside on client side and it would interact with Telerik Reporting WCF service residing on server.
For my scenario, we don’t want to have any WCF component. My Silverlight application is interacting with Java web service. On similar lines, can we have Telerik Reporting Service exposed over Java web service?
I user exactly below code, But it still show me o pop up to choose Open or Save PDF file. I use Q2_2010_v4_1_10_921
Sub ExportToPDF(ByVal reportToExport As Telerik.Reporting.Report) Dim reportProcessor As New ReportProcessor() Dim result As RenderingResult = reportProcessor.RenderReport("PDF", reportToExport, Nothing) Dim fileName As String = result.DocumentName + ".pdf" Response.Clear() Response.ContentType = result.MimeType Response.Cache.SetCacheability(HttpCacheability.Private) Response.Expires = -1 Response.Buffer = True Response.AddHeader("Content-Disposition", String.Format("{0};FileName=""{1}""", "attachment", fileName)) Response.BinaryWrite(result.DocumentBytes) Response.End() End Sub '. . . ' Sample call to ExportToPDF() ExportToPDF(New Report1())
Private Sub MasterReport_ItemDataBinding(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.ItemDataBindingDim unitX As Drawing.Unit = Drawing.Unit.Inch(0)Dim unitY As Drawing.Unit = Drawing.Unit.Inch(0)Dim size As New Drawing.SizeU(Drawing.Unit.Inch(0.01), Drawing.Unit.Inch(0.01))Dim ds As DataSet = TryCast(Me.DataSource, DataSet)Dim index As Integer = 0Me.DetailSection1.Items.Clear()For Each dr As DataRow In ds.Tables(0).Rows Dim d As New MyData() 'internal object that executes spocs Dim subReport As New Telerik.Reporting.SubReport Dim rpt As New NameOfSubReport subReport.ReportSource = rpt d.StoredProc = "StoredProcedureName" d.Parameters.Add("@PersonID", SqlDbType.Int).Value = dr("PersonID") subReport.ReportSource.DataSource = d.ExecuteStoredProcToDataset subReport.Location = New Drawing.PointU(unitX, unitY) subReport.Size = size Me.DetailSection1.Items.Add(subReport) unitY = unitY.Add(Drawing.Unit.Inch(0.1))NextEnd SubHi there,
I want to add subreports dynamically as per the selection. The detail scenario are as follows
1. I have 3 silverlight check box control and 3 reports as rpt1, rpt2 and rpt3.
2. If a user select first two check box then I want to display rpt1 and rpt2.
3. If a user select second and third check box then I want to display rpt2 and rpt3.
4. If a user select first and third check box then I want to display rpt1 and rpt3.
Thanks