or
<
body
>
<
div
style
=
"width: 700px; margin-left: auto; margin-right: auto;"
>
<
a
href='/Patients/Show/<%= ViewData["PatientId"] %>' class="button">Current User</
a
><
br
/>
<
br
/>
<
script
runat
=
"server"
>
//protected override void OnPreRender(EventArgs e) {
// ReportViewer1.Report = new Report1();
// base.OnPreRender(e);
//}
public override void VerifyRenderingInServerForm(Control control) {
// to avoid the server form (<
form
runat
=
"server"
>) requirement
}
protected override void OnLoad(EventArgs e) {
base.OnLoad(e);
// bind the report viewer
var priliminaryReport = new PatientPriliminaryReport();
priliminaryReport.ReportParameters["patientId"].Value = ViewData["PatientId"];
priliminaryReport.ReportParameters["userId"].Value = ViewData["UserId"];
ReportViewer1.Report = priliminaryReport;
}
</
script
>
<
form
id
=
"Form1"
runat
=
"server"
>
<
telerik:ReportViewer
ID
=
"ReportViewer1"
runat
=
"server"
Height
=
"1100px"
Width
=
"700px"
>
</
telerik:ReportViewer
>
</
form
>
</
div
>
</
body
>
namespace Faq.Reports {
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using Telerik.Reporting;
using Telerik.Reporting.Drawing;
/// <
summary
>
/// Summary description for PatientPriliminaryReport.
/// </
summary
>
public partial class PatientPriliminaryReport : Telerik.Reporting.Report {
public PatientPriliminaryReport() {
//
// Required for telerik Reporting designer support
//
InitializeComponent();
//
// TODO: Add any constructor code after InitializeComponent call
//
}
}
}
An error has occurred while processing Table 'table1':
Group with name 'Group1' already exists. Groups should have unique names.
Could someone please help me to attack that problem?
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
.ItemDataBinding
Dim
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
= 0
Me
.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))
Next
End
Sub