or
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 Sub