or
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Billing.aspx.cs" Inherits="Wysocki.Farm.Intranet.Billing.Billing" %>
<%@ Register Assembly="Telerik.ReportViewer.WebForms, Version=7.0.13.426, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" Namespace="Telerik.ReportViewer.WebForms" TagPrefix="telerik" %>
<!DOCTYPE html>
<
html
xmlns
=
"http://www.w3.org/1999/xhtml"
>
<
head
runat
=
"server"
>
<
title
></
title
>
<
style
type
=
"text/css"
>
html#html, body#body, form#form1, div#content
{
height: 100%;
}
</
style
>
</
head
>
<
body
>
<
form
id
=
"form1"
runat
=
"server"
>
<
div
>
<
div
id
=
"content"
>
<
telerik:ReportViewer
ID
=
"ReportViewer1"
runat
=
"server"
Height
=
"100%"
Width
=
"100%"
ViewMode
=
"PrintPreview"
></
telerik:ReportViewer
>
</
div
>
</
div
>
</
form
>
</
body
>
</
html
>
I also tried:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Billing.aspx.cs" Inherits="Wysocki.Farm.Intranet.Billing.Billing" %>
<%@ Register Assembly="Telerik.ReportViewer.WebForms, Version=7.0.13.426, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" Namespace="Telerik.ReportViewer.WebForms" TagPrefix="telerik" %>
<!DOCTYPE html>
<
html
xmlns
=
"http://www.w3.org/1999/xhtml"
>
<
head
runat
=
"server"
>
<
meta
http-equiv
=
"X-UA-Compatible"
content
=
"IE=edge"
/>
<
meta
content
=
"text/html; charset=UTF-8"
http-equiv
=
"content-type"
>
<
title
></
title
>
<
style
type
=
"text/css"
>
html#html, body#body, form#form1, div#content
{
height: 100%;
}
</
style
>
</
head
>
<
body
>
<
form
id
=
"form1"
runat
=
"server"
>
<
div
>
<
div
id
=
"content"
>
<
telerik:ReportViewer
ID
=
"ReportViewer1"
runat
=
"server"
Height
=
"100%"
Width
=
"100%"
ViewMode
=
"PrintPreview"
></
telerik:ReportViewer
>
</
div
>
</
div
>
</
form
>
</
body
>
</
html
>
Good morning and updated Telerik.ReportViewer.WebForms control, Version = 7.1.13.612, given me many problems I can not compile my solution and even a blank solution added control and gives the same problem does not give me the property is not drawn in the form ...
That may be the version came with a problem
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);;