Telerik Forums
Reporting Forum
1 answer
115 views
Hi,
Whenever i going to add reportsource for the subreport it gives me error of "Object reference not set to instance of a object"
what could be the problem please let me know.

Thanks.
Manoj Gupta
Steve
Telerik team
 answered on 11 Jul 2011
1 answer
148 views
Whenever I try and drag and drop the Report Viewer WPF component (on my WPF window), i get the following error:

Initialization of 'Telerik.Windows.Controls.RadButton' threw an exception.
"Cannot locate resource: 'themes/expression/dark/rangecontrol.xaml'."

I am using VS2010 with the Telerik Reporting Q1 2011.  I followed the instructions for adding the report viewer to a WPF application, but have not been able to get past the above error.  Despite referencing all Telerik themes.

Please help.
Daniel Woodard
Top achievements
Rank 1
 answered on 08 Jul 2011
4 answers
290 views
I would like to dump the raw data that is used to create a report to Excel.
My intent is to be able to dump the raw data that feeds a report, be it a top level report, or a drill - through report (a report called by another report).  How can I retrieve the raw data that feeds the currently viewed report?

Telerik Reporting 2011 Q1 5.0.11.603
VS 2008 using WebForms
All reports datasources are SQLDatasource Stored Procedures with the report parameters fed from the application to the report object


The following is the method I am currently using for the top level report only.
Protected Sub btnDumpToExcel_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnDumpToExcel.Click
    Dim RunRpt As String = Me.ReportViewer1.Report.Reports(0).Name
 
    Dim tb As New DataTable(RunRpt)
    Dim dataConn As New SqlConnection
 
    Select Case RunRpt
        Case "evRptBehaviorChange"
            Dim report1 As Snap_EvalReports.evRptBehaviorChange = ReportViewer1.Report.Reports(0)
            With report1
                Dim xSQLDatasource As Telerik.Reporting.SqlDataSource = .DataSource
                Dim SQLConnectionString As String = System.Configuration.ConfigurationManager.ConnectionStrings(xSQLDatasource.ConnectionString).ToString
 
                Dim xSelectCommand As String = xSQLDatasource.SelectCommand
 
                dataConn.ConnectionString = SQLConnectionString
                dataConn.Open()
                Dim sdc As SqlCommand = New SqlCommand(xSelectCommand, dataConn)
                sdc.CommandTimeout = LengthOfTimeOut
                sdc.CommandType = CommandType.StoredProcedure   'xSQLDatasource.SelectCommandType
 
                For Each p As Telerik.Reporting.SqlDataSourceParameter In xSQLDatasource.Parameters
 
                    Dim xParam As SqlParameter = New SqlParameter(p.Name, p.GetType)
                    sdc.Parameters.Add(xParam)
                Next
 
                '                       ALTER   PROCEDURE [dbo].[StoredProcedure1]
                '(@FiscalYearID      int=3)
                sdc.Parameters.Item("@FiscalYearID").Value = CType(Session("spaFiscalYear"), Integer)
                Dim sda As SqlDataAdapter
                sda = New SqlDataAdapter(sdc)
                sda.Fill(tb)
                dataConn.Close()
                dataConn = Nothing
                XLSExport(tb, RunRpt)
            End With
    End Select
End Sub

Thank you in advance.

Patti
P.
Top achievements
Rank 2
 answered on 08 Jul 2011
1 answer
94 views
Hi:

i have designed the telerik report using telerik reporting, i am passing 4 parameters to the report.
when i click on preview it is asking for parameters, when i entered first parameter and moved to next parameter, the information i entered in the first parameter is erasing.
The report is getting refreshed.

Any help is appreciated.

Thanks
Venu
Peter
Telerik team
 answered on 08 Jul 2011
2 answers
95 views
I want to hidden the same under picture, but I don't know current version supported. Can you help me ?
abc
Top achievements
Rank 1
 answered on 08 Jul 2011
4 answers
127 views
Hi,

I am using telerik Silevrlight Reportviewer. I am able to see pie chart with values in Report Viewer but when i try to Export to PDF , instead of pie chart I am getting "There is no empty series". Any help is highly appreciated.

Regards,
Shweta
Aitor
Top achievements
Rank 1
 answered on 08 Jul 2011
3 answers
405 views
Hi

I am using ReportViewer to display the reports and also to export the reports in the required format. Here i want a change in the existing system such that when user tries to export to excel, instead of displaying the report in the excel, we want to display the underlying data in the excel sheet. Please let me know whether the existing system support this functionality?

Thanks in advance
Ravindra
Peter
Telerik team
 answered on 07 Jul 2011
1 answer
39 views
I have 2 different reports that fail on the Silverlight viewer when I have '{myword}' in the text I'm displaying from a field.  The asp.net version shows the correct text.

I get an error:
"The type 'SUNRISE' was not found. [Line: 1 Position: 7039]"

SUNRISE is the text in {SUNRISE}  it's at the start of the text if that makes a difference.  I'm using version 5.0.11.316


Steve
Telerik team
 answered on 07 Jul 2011
4 answers
173 views
Hi
I'm having this issue where the information I have in my SQL database is not being reflected on the chart. 

My SQL query returns this data below:

raisedBy               counter     createdon
Risha Wadhwani     13        2010.06.14
Risha Wadhwani     19         2010.06.15
Tufail Khan              4        2010.06.15
Risha Wadhwani     13        2010.06.16

Also see screenshot 'sql.png'

This is the code that I am using to generate the Chart :

private void chart1_NeedDataSource(object sender, EventArgs e)
{
            var dataset = new DataSet();
            var adapter = new SqlDataAdapter();
            var conn =
                new SqlConnection("Initial Catalog=****;Data Source=****;User Id=****;Password=****;");
            var cmd = new SqlCommand
                          {
                              Connection = conn,
                              CommandType = CommandType.Text,
                              CommandText =
                                  @"SELECT  raisedBy,
        COUNT(id) as counter,
        createdon FROM
        (
            SELECT
                    da.name as raisedBy,
                    defects.id,
                    convert(VARCHAR, defects.created_on, 102)
                        AS
                            createdon
                        FROM
                            defects
                        LEFT JOIN
                            [user] da
                        ON
                            (defects.raised_by = da.id)
                        WHERE
                            defects.id IN(488,490,491,492,493,494,495,496,497,498,499,500,501,502,504,505,506,508,509,511,512,513,514,515,516,517,518,519,520,521,523,524,526,528,529,530,535,536,537,538,539,540,541,542,543,544,545,546,547)
                         
        )
                        table1
        GROUP BY
                raisedBy,
                createdon
                ORDER BY createdon ASC"
                          };
 
            adapter.SelectCommand = cmd;
            adapter.Fill(dataset);
            DataView view = dataset.Tables[0].DefaultView;
 
            //var chart = sender as Chart;
 
            chart1.PlotArea.XAxis.Appearance.LabelAppearance.RotationAngle = -320;
            chart1.PlotArea.XAxis.Appearance.TextAppearance.TextProperties.Color = Color.BlueViolet;
            chart1.PlotArea.XAxis.DataLabelsColumn = "createdon";
 
            chart1.DataGroupColumn = "raisedBy";
 
            chart1.PlotArea.XAxis.IsZeroBased = false;
            chart1.PlotArea.XAxis.Appearance.ValueFormat = Telerik.Reporting.Charting.Styles.ChartValueFormat.ShortDate;
            chart1.PlotArea.XAxis.Appearance.CustomFormat = "MM/dd/yyyy";
            chart1.PlotArea.XAxis.LayoutMode = Telerik.Reporting.Charting.Styles.ChartAxisLayoutMode.Between;
            chart1.PlotArea.XAxis.LabelStep = 1;
            chart1.PlotArea.XAxis.MaxItemsCount = view.Count;
 
            foreach (DataRowView rowView in view)
            {
                var datedate = DateTime.Parse(rowView.Row.ItemArray[2].ToString());
                rowView.Row.ItemArray[2] = datedate;
            }
 
           
            if (chart1 != null) chart1.DataSource = view;
}


And finally, attached is the screenshot to see the Chart that is being rendered.

The problem is that is 'Tufail Khan' column(on the chart) is being displayed under the date '2010.06.14', instead of '2010.06.15' where it should have been, if you look at the result from the SQL result..

Any help on this would be very much appreciated.
Cheers Telerik!

Navnit 
Navnit
Top achievements
Rank 2
 answered on 07 Jul 2011
1 answer
65 views
Hello:

I am trying to visualize data froma  database which comes in two colums, a "date" and a "number" column. I want to put the date on one of the chart axis and the number on the other. Is that not possible? I am getting design time errors telling that "Date" is not numeric.
Please help.

--t
Steve
Telerik team
 answered on 07 Jul 2011
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?