This is a migrated thread and some comments may be shown as answers.

The source of the report definition has not been specified.

4 Answers 223 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jeff Wickersham
Top achievements
Rank 1
Jeff Wickersham asked on 30 Jun 2013, 11:24 AM

We have what we believe followed the instruction for wiring a Telerik report to a data table but cannot get it to run.
The report has it's own class lib and the actual method to call it is in a .net website here is the calling code which produces the datatable with no issues

The source of the report definition has not been specified.

this tool is most frustrating to use...any guidance appreciated

Web interface code

   protected void Run_Click(object sender, EventArgs e)
{
    Telerik.Reporting.ObjectDataSource objectDataSource = new Telerik.Reporting.ObjectDataSource();
    objectDataSource.DataSource = GetData();  
    var report = new CallCenterReportLibrary.CSRPerformance();
    report.DataSource = objectDataSource;

    //Pass to viewer
    var instanceReportSource = new Telerik.Reporting.InstanceReportSource();
    instanceReportSource.ReportDocument = report;
    this.ReportViewer1.ReportSource = instanceReportSource;

    ReportViewer1.RefreshReport();
}

private DataTable GetData()
{
    ReportBO objReportBO = new ReportBO();
    ReportBLL objReportBLL = new ReportBLL();

    //Campaigns
    var campaignCollection = ddlCampaign.CheckedItems;
    var campaignList = new StringBuilder();
    foreach (var item in campaignCollection)
    {
        if (item.Checked)
        {
            campaignList.Append(item.Value + ",");
        }
    }

    //Teams
    var teamCollection = ddlTeam.CheckedItems;
    var teamList = new StringBuilder();
    foreach (var item in teamCollection)
    {
        if (item.Checked)
        {
            teamList.Append(item.Value + ",");
        }
    }

    //Agents
    var agentCollection = ddlAgent.CheckedItems;
    var agentList = new StringBuilder();
    foreach (var item in agentCollection)
    {
        if (item.Checked)
        {
            agentList.Append(item.Value + ",");
        }
    }
    objReportBO.StartDate = DateTime.Parse(txtStartDate.SelectedDate.ToString());
    objReportBO.EndDate = DateTime.Parse(txtEndDate.SelectedDate.ToString());
    objReportBO.CampaignId = String.IsNullOrEmpty(campaignList.ToString().TrimEnd(','))== true ? null : campaignList.ToString().TrimEnd(',');
    objReportBO.TeamId = String.IsNullOrEmpty(teamList.ToString().TrimEnd(',')) == true ? null : teamList.ToString().TrimEnd(',');
    objReportBO.AgentId = String.IsNullOrEmpty(agentList.ToString().TrimEnd(',')) == true ? null : agentList.ToString().TrimEnd(',');

    return objReportBLL.LoadCSRPerformanceData(objReportBO);;

Akshay Shah
Top achievements
Rank 1
commented on 15 Jun 2021, 09:53 AM

We get the same error in production and when users logout and login and open report again it works, is this some session lost or what please guide.
Neli
Telerik team
commented on 18 Jun 2021, 10:08 AM

I am sorry to hear that you are experiencing issues with our product. There are two options that I would suggest:

1) In 15.1.21.616, we added support for keeping the client session alive in WPF, Windows Forms, and HTML5-based report viewers.

2) You can increase the value of the ClientSharingTimeout property.

4 Answers, 1 is accepted

Sort by
0
Squall
Top achievements
Rank 1
answered on 03 Jul 2013, 03:28 PM
Do you get this error message after the button click or before that? 
Akshay Shah
Top achievements
Rank 1
commented on 15 Jun 2021, 09:53 AM

We get the same error in production and when users logout and login and open report again it works, is this some session lost or what please guide.
0
Jeff Wickersham
Top achievements
Rank 1
answered on 03 Jul 2013, 03:29 PM
after the button click
0
Jeff Wickersham
Top achievements
Rank 1
answered on 03 Jul 2013, 05:54 PM
After click to run the report
0
Stef
Telerik team
answered on 08 Jul 2013, 01:11 PM
Hi Jeff,

The Resources.MissingReportSource Property indicates there is no set report source for the current ReportViewer control.

Since in your code there is a viewer with set report via report source instance, please open a support ticket and send us a runnable sample to review on our end.

Regards,
Stef
Telerik

Have you tried the new visualization options in Telerik Reporting Q2 2013? You can get them from your account.

Akshay Shah
Top achievements
Rank 1
commented on 15 Jun 2021, 09:53 AM

We get the same error in production and when users logout and login and open report again it works, is this some session lost or what please guide.
Tags
General Discussions
Asked by
Jeff Wickersham
Top achievements
Rank 1
Answers by
Squall
Top achievements
Rank 1
Jeff Wickersham
Top achievements
Rank 1
Stef
Telerik team
Share this question
or