Hi,
I am using the code posted here to switch report db at runtime (trdp's designed outside of my application then hosted by http).
One thing I picked up is that sub-reports are not handled properly, gives an error because the path is not found during this call in 'SetConnectionString'
subReport.ReportSource =
this
.UpdateReportSource(subReport.ReportSource);
subReport.ReportSource above will be a simple filename (assuming the sub-report was designed in the same folder as the main report) which means the report file will not be found during deserialization.
I can't post my working routine as it has become too customized but if you're doing this you must ensure that subReport.ReportSource is properly set to a full path before calling UpdateReportSource (or in UpdateReportSource). I hope this helps anyone who has this problem.
how to remove space when there is no value on the textbox in the telerik report. I've added a picture for better understanding.
Thanks in advance.
void
ExportReport(Telerik.Reporting.Report reportToExport)
{
Telerik.Reporting.InstanceReportSource instanceReportSource =
new
Telerik.Reporting.InstanceReportSource();
instanceReportSource.ReportDocument = reportToExport;
ReportProcessor reportProcessor =
new
ReportProcessor();
RenderingResult result = reportProcessor.RenderReport(
"XLSX"
, instanceReportSource,
null
);
string
fileName = result.DocumentName +
"."
+ result.Extension;
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();
}
Hello. I have a really long detail section containing mostly textboxes and tables, but most of the fields have some visibility rules. However, only like half of the fields are usually visible in a single report. When exported to pdf, every other page is blank (ofc with header and footer) and there are some blank pages in the end as well. Every report creates the same amount of pages. This is probably related to the height of the detail section. I have read many forum threads as well as http://www.telerik.com/support/kb/reporting/details/problem-telerik-reporting-renders-blank-pages but I am still not able to solve this problem. The detail section has "KeepTogether" set to false. Is there any solution to this problem?
Thank you
Hi Telerik Support Team,
I have set the report parameter section position to bottom of report viewer control.
Is there any way for me to show report parameter in bottom.
Thanks & Regards,
Premraj S.
I apologize if I missed this in the documentation or forums, but I can't seem to find any solid information on using a graph with custom visuals in Telerik Reporting. I see an example of custom visuals using the Drawing API.
https://demos.telerik.com/kendo-ui/bar-charts/visuals
How can I use this custom graph or another in a Telerik Report? Is it possible? I would prefer to use Visual Studio over the standalone reporting tool.
Thanks,
AJ
Hello, after I have updated WPF Controls and Telerik.Reporting libraries from Q2 2014 to Q1 2016 (WPF NoXAML 2016 Q1), I can't see any data in my reports (except table headers). But there are some errors in output window:
*** ProcessReport #0 STARTED ***
Exception thrown: 'System.OperationCanceledException' in mscorlib.dll
Exception thrown: 'System.OperationCanceledException' in Telerik.Reporting.dll
Exception thrown: 'System.OperationCanceledException' in Telerik.Reporting.dll
*** ProcessReport #0 DONE in 00:00:00.1307766 ***
In my code I do something like this:
var reportSource = new InstanceReportSource {ReportDocument = rep};
reportview.ReportSource = reportSource;
reportview.RefreshReport();
Please help me to solve this problem! Thanks