| Warning[] warnings; |
| string[] streamids; |
| string mimeType; |
| string encoding; |
| string extension; |
| byte[] bytes = reportViewer1.LocalReport.Render( |
| "PDF", null, out mimeType, out encoding, out extension, |
| out streamids, out warnings); |
| FileStream fs = new FileStream(@"c:\output.pdf", FileMode.Create); |
| fs.Write(bytes, 0, bytes.Length); |
| fs.Close(); |
I am working on a report , where i have to display a stackbar chart . But chart does not display accurate data .
please find attachement for report pdf and code file . please help me Asap.
| Private Sub Chart1_NeedDataSource(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles chart1.NeedDataSource |
| Try |
| Dim StrSqlConnection As String = ConnectionString |
| If Trim(StrSqlConnection) <> "" Then |
| If Not ObjSqlCon Is Nothing Then |
| ObjSqlCon = Nothing |
| End If |
| ObjSqlCon = New SqlConnection(StrSqlConnection) |
| ObjSqlCon.Open() |
| If ObjSqlCon.State = ConnectionState.Open Then |
| Dim chart1 As Telerik.Reporting.Processing.Chart = CType(sender, Telerik.Reporting.Processing.Chart) |
| Dim defChart As Telerik.Reporting.Chart = DirectCast(Chart1.ItemDefinition, Telerik.Reporting.Chart) |
| Dim ProjectRpt As New ProjectTrendDstTableAdapters.ReportProjectTrendAnalysisTableAdapter |
| ProjectRpt.Connection = ObjSqlCon |
| Dim ProjectDst As New ProjectTrendDst.ReportProjectTrendAnalysisDataTable |
| ProjectDst = ProjectRpt.GetData |
| SalesPersonQChart.DataSource = ProjectDst |
| defChart.DataGroupColumn = "Status" |
| defChart.PlotArea.XAxis.DataLabelsColumn = "Territory" |
| defChart.Legend.Appearance.GroupNameFormat = "#VALUE" |
| End If |
| End If |
| Catch ex As Exception |
| Finally |
| If ObjSqlCon IsNot Nothing Then |
| ObjSqlCon = Nothing |
| End If |
| End Try |
| End Sub |
We have used Telerik reporting version 3.0.9.430,Now we are using latest version 3.2.9.1211
the old version contains Telerik.reporting.processing.dll .But it is not available in the
latest version, so While upgrading to latest version we are facing reference.
We are not able to see the report.
:(
Hi,
I have a question regarding generate mixed layout report for a testing project.
In this example, sample A tests against B1, B2, B3, B4..... Each pair’s report shall look like the attached file. Each report page header shall be the pair in test.
My question is how to export one report including all the pairs’ reports in the order A-B1, A-B2,A-B3,A-B4 as the same layout as the attached file?
Currently I am using the report book which includes two reports (one for all the pairs' test results, one for all the pairs' test images)