Hello, I noted that InstanceReportSource is now deprecated, what is wrong with instance report source?
Anyway, how can I replace this code that does not know anything about report parameters?
Looks like the TypeReportSource does not fills the parameters set, so that code should get parameters informations elsewhere?
string
ReportLibrary = oRepLib.ToString();
string
ReportName = oRepName.ToString();
Telerik.Reporting.Report report = WorkerWrapper.getTelerikReporting(ReportLibrary, ReportName);
foreach
(var p
in
report.ReportParameters)
{
object
oParam ;
if
(!spoolRequest.TryGetParameter(p.Name,
out
oParam))
{
if
(p.AllowNull ==
false
)
throw
new
InvalidOperationException(
"The parameter "
+ p.Name +
" is not optional on report "
+ ReportLibrary +
"."
+ ReportName);
}
p.Value = oParam;
}
Telerik.Reporting.Processing.ReportProcessor reportProcessor =
new
Telerik.Reporting.Processing.ReportProcessor();
System.Collections.Hashtable deviceInfo =
new
System.Collections.Hashtable();
Telerik.Reporting.InstanceReportSource reportSource =
new
Telerik.Reporting.InstanceReportSource();
reportSource.ReportDocument = report;
Telerik.Reporting.Processing.RenderingResult result = reportProcessor.RenderReport(
"PDF"
, reportSource, deviceInfo);
Telerik Reports, spanning data across columns in a grid
I have a telerik report (using Telerik.Reporting plugin Q1 2013 SP1) based on the following sql
select productId from products
How would I get the system to populate all of the columns with ProductIds, so each column is a ProductId, so we have 3 products on one line. It seems simple yet im struggling to see a simple solution
Here it is in simple tabular form, this is how I want the report to look:-
Hello,
I want to add new windows form with Telerik Report Viewer form, but it appears me only the version telerik report viewer form R2 2016 and it says that incorrect version because i have and R1 2017 but it doesn't appers me in the common items.
This is my button click:
Private Sub btnRaport_Click(sender As Object, e As EventArgs) Handles btnRaport.Click
dgvOperatii.Hide()
rptOperatii.Visible = True
If rptOperatii.Visible = True Then
'Dim reportSource = New Telerik.Reporting.UriReportSource()
'ReportSource.Uri = "E:\Proiecte\SIG\TEST\Reports\Report_OperatiiStoc.trdp"
rpt1.DataSource = dgvOperatii.DataSource
rpt1.ReportParameters("DenumireFirma").Value = Detalii_Firma.Denumire
rpt1.ReportParameters("Nume_Gestiune").Value = CStr(cboDepo_From.SelectedValue).ToString
rpt1.ReportParameters("DInceput").Value = dt_Inceput.Value
rpt1.ReportParameters("DSfarsit").Value = dt_Sfarsit.Value
'rptOperatii.ReportSource = rpt1
rptOperatii.RefreshReport()
rptOperatii.Show()
Else
dgvOperatii.Show()
End If
End Sub
You can help me with this. I'm in a deadline and I'm in a hurry with it.
P.S The conclusion is that i need to make a Telerik report viewer on a click button after the gridview is loading.
Thank you very much.
Telerik Team,
I am doing a POC to evaluate the Telerik DevArt Reporting for our application development. I am now working on report design that has multiple group header sections. I am creating this Telerik report based on the existing Crystal Report design which has multiple group headers. Please see the attached file for details. I do not see any group box or grouping feature on the Telerik report designer in trial version. How can I achieve the same design thru Telerik Reporting designer trial version. It will help me if you could provide the design tips to generate the same design as attached. Thanks in advance.
Regards,
Naga
Hello,
I'm getting the data for the report with an object.
I've tried to save the data in a Base-64 string and load it the next time through the Base-64 string.
But the report doesn't show the data it the Table (I'm getting the no data message in the report).
I use this for getting the data for my table
this.dataTable.DataSource = DocumentItems;
The code used for getting the data from a Base-64 string is in the attached image.
Hi,
i am facing a problem setting the reportsource of a Sub - Sub Report.
I am trying it like this....
using
(System.Xml.XmlReader xmlReader = System.Xml.XmlReader.Create(reportingPath + report_Name, settings))
{
Telerik.Reporting.XmlSerialization.ReportXmlSerializer xmlSerializer =
new
Telerik.Reporting.XmlSerialization.ReportXmlSerializer();
ExportReport = (Telerik.Reporting.Report) xmlSerializer.Deserialize(xmlReader);
if
((ExportReport !=
null
))
{
ExportReport.ReportParameters[
"Id"
].Value = Id;
// Subreport for Column1
if
((ExportReport.Items.Find(
"SubReport_Column1"
,
true
)).Count() == 1)
{
Telerik.Reporting.SubReport SubReport_Column1 = (Telerik.Reporting.SubReport) ExportReport.Items.Find(
"SubReport_Column1"
,
true
)[0];
((Telerik.Reporting.UriReportSource) (SubReport_Column1.ReportSource)).Uri = reportingPath + SubReport_Colum1_Name;
if
((SubReport_Column1.Items.Find(
"SubReport_Column1_Details"
,
true
)).Count() == 1)
{
Telerik.Reporting.SubReport Report_SubReport_Column1_Details = (Telerik.Reporting.SubReport) SubReport_Column1_Details.Items.Find(
"Column1_Details"
,
true
)[0];
((Telerik.Reporting.UriReportSource) (Report_SubReport_Column1_Details .ReportSource)).Uri = reportingPath + report_Column1_Details;
}
}
...
Hope somebody can help me out?
I am not sure, what is the right way to set the SubReport.URI of the SubReport.
if ((SubReport_Column1.Items.Find("SubReport_Column1_Details", true)).Count() == 1)