Telerik Forums
Reporting Forum
2 answers
499 views
In my report, I have an index page where I need to show the page number of each section, text length of each section is dynamic. how can I add corresponding page number of each section in index page?

thanks,
Nasko
Telerik team
 answered on 14 Sep 2016
19 answers
417 views
Easy question, does the telerik reporting offer a way to generate a table of contents?

And if not, will this feature be available in the future?
Nasko
Telerik team
 answered on 14 Sep 2016
1 answer
279 views

Hi,

I’m trying to export a document to Excel from ReportViewer.

The document consists of traditional Chinese words and numerals, and the row height of exported “xls” file do not fit with the contents (see attached file).

Does any setting or configuration could adjust the row height of xls to fit the words?

I will be grateful for any help anyone can provide.

Stef
Telerik team
 answered on 14 Sep 2016
2 answers
132 views

Telerik HTML5 report viewer. I am passing in JSON data as parameters. Using ReportTypeResolver.  If the parameteres are not multivalue, the reports work in Chrome and IE. If the parameters are multivalue, The reports work in Chrome, but not IE. IE gives error: Missing or invalid parameter value. Please input valid data for all parameters.  

From another thread, I see that- Multivalue report parameters are evaluated as array of objects. Which is what I am passing.

My JSON data (Using jsonData.stringify writing to console) looks like this: 

{"ReportName":"Onshore_FieldServiceTicket","DisplayName":"Field Service Ticket By Client/Unit","SiteId":"f7602d89-eb50-479b-bd3d-bbfa146ff4be","StartDate":"8/1/2016 12:00:00 AM","EndDate":"9/30/2016 12:00:00 AM","StringInputClients":["FE56F7C8-FFD7-4D38-BF38-D5088FAEA93F"],"StringInputTrucks":["C19264F9-B411-4CE8-98F0-276C704AFC71"],"StringInputTickets":["CD024852-97C3-4861-9C9F-D73FBD09F642","9C9DD5DA-BED7-40BC-BA5A-F01129D8A046"]}

 

Again - if I run a report without the StringInputClients, StringInputTrucks, and StringInputTickets parameters, the report works in IE.

 

Any ideas as to why this is throwing an error in IE? 

 

1.reportSource: {
2.                            
3.     report: "ReportingLibrary." + ReportName + ", ReportingLibrary, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null",
4. 
5.parameters: jsonData,
6.
                        },     

Rick
Top achievements
Rank 1
 answered on 13 Sep 2016
1 answer
361 views

Hi,

we use the WPF ReportViewer to display reports in our application. The reports are created using the standalone report designer (Q2 2015).

When we use the preview function of the designer we get nicely generated reports including background images. However, when we use the WPF ReportViewer to render and display the reports either the background image is pixelated (at 100% zoom) or the text gets blurry (zoom > 100%).

I attached 2 images where the difference between the designer (left side) and the WPF ReportViewer (right side) is shown.

How can I configure the ReportViewer to render and display our reports correctly?

Thanks,
Matthias

Stef
Telerik team
 answered on 13 Sep 2016
3 answers
246 views

Hello,

In detail section of my report, I have few Tables and I am making visible based on condition from code.

While exporting to PDF, content moving up but its printing extra pages for the same. As I have already verified that page is not printing due to width or any content size issue. Its just only because of this tables got visible false but printing extra pages for the same. I have also tried to apply property keeptogether false for visible false tables as well but my issue not solved.

Please anyone can help to come out from this issue.

Thanks in Advance.

Stef
Telerik team
 answered on 13 Sep 2016
3 answers
194 views
Loading Teleric reports viewer Show in a reports Viewer inside
"XAML rendering format is not available"
Stef
Telerik team
 answered on 12 Sep 2016
2 answers
77 views

Hello,

I'm using Q2 2015 and have the following problem.

 

When I create a reportbook

 

ReportBook reportBook = new ReportBook();
                reportBook.Reports.Add(new Total());
                reportBook.Reports[0].ReportParameters["DateFrom"].Value = paramBlock.GetParameterValues(ParamID.WeekDate).Value1;
                reportBook.Reports[0].ReportParameters["DateTo"].Value = paramBlock.GetParameterValues(ParamID.WeekDate).Value2;
                reportBook.Reports[0].DataSource = paramBlock.TotalCustomers;                                                                              
                reportBook.Reports.Add(new AfvalPercentageVervolgChecks());
                reportBook.Reports[1].ReportParameters["DateFrom"].Value = paramBlock.GetParameterValues(ParamID.WeekDate).Value1;
                reportBook.Reports[1].ReportParameters["DateTo"].Value = paramBlock.GetParameterValues(ParamID.WeekDate).Value2;
                //reportBook.Reports[1].DataSource = paramBlock.ExpectedChecks;
                //reportBook.Reports.Add(new VervolgChecks());
                //reportBook.Reports[2].ReportParameters["DateFrom"].Value = paramBlock.GetParameterValues(ParamID.WeekDate).Value1;
                //reportBook.Reports[2].ReportParameters["DateTo"].Value = paramBlock.GetParameterValues(ParamID.WeekDate).Value2;
                //reportBook.Reports[2].DataSource = paramBlock.ExpectedChecks;
                reportBook.Reports.Add(new BankAfval());
                reportBook.Reports[2].ReportParameters["DateFrom"].Value = paramBlock.GetParameterValues(ParamID.WeekDate).Value1;
                reportBook.Reports[2].ReportParameters["DateTo"].Value = paramBlock.GetParameterValues(ParamID.WeekDate).Value2;
                reportBook.Reports[2].DataSource = paramBlock.CollectRuns;                
                reportBook.Reports.Add(new AfvalPercentageWeek());
                reportBook.Reports[3].ReportParameters["DateFrom"].Value = paramBlock.GetParameterValues(ParamID.RecruiterDate).Value1;
                reportBook.Reports[3].ReportParameters["DateTo"].Value = paramBlock.GetParameterValues(ParamID.RecruiterDate).Value2;                
                reportBook.Reports[3].DataSource = paramBlock.Refuse;
                reportBook.Reports.Add(new IssuesPerMonth());
                reportBook.Reports[4].ReportParameters["DateFrom"].Value = paramBlock.GetParameterValues(ParamID.WeekDate).Value1;
                reportBook.Reports[4].ReportParameters["DateTo"].Value = paramBlock.GetParameterValues(ParamID.WeekDate).Value2;
                reportBook.Reports[4].DataSource = paramBlock.Issues;

 

The report AfvalPercentageWeek() had different values for the reportparameters.

However those values are not used, instead the values of the first (?) report are used.

 

Renaming the report parameters is a work around, but I believe this to be a bug.

 

Or is this as designed?

 

Jeroen

Jeroen
Top achievements
Rank 1
Iron
Iron
 answered on 12 Sep 2016
1 answer
425 views
Hi,

We have below lines of code for exporting the report in XLS format. 

After running performance test using windows performance monitor tool, we observed high memory utilization while executing RenderReport method.

However the serious concern is RenderReport method is not releasing the memory after finishing its execution. Need your urgent help/support. 

Additional design information - 

The Telerik report uses report controller as a DataSource & its action method as a DataMember. Action method consumes WCF service which gets the data from the database. RenderReport method internally makes a call to this action method which executes fine (not much memory utilization) however after that when it receives the data (type as List) from action method and  starts actual rendering with the data & template, it suddenly starts utilizing high memory which it fails to release after completion.

Minimum number of records tested  - 390 approx.

More information - 
Telerik.Reporting versions used:   8.1.14.804 & 10.1.16.615
Dev machine details:                     Intel I5/2.4Ghz processor, 8 GB RAM

=====================================================================================================================

var reportProcessor     =new ReportProcessor();
var deviceInfo              =new Hashtable();
var typeReportSource =new TypeReportSource();

typeReportSource.TypeName = Type.GetType(typeof(T).Namespace + "." + reportName).AssemblyQualifiedName;

typeReportSource.Parameters.AddRange(parameters);

var result = reportProcessor.RenderReport(reportExportType, typeReportSource, deviceInfo);

string fileName = result.DocumentName + "." + result.Extension;
string path        = System.IO.Path.GetTempPath();
string filePath   = System.IO.Path.Combine(path, fileName);

using (MemoryStream ms = new MemoryStream())
{
    ms.Write(result.DocumentBytes, 0, result.DocumentBytes.Length);
    ms.Flush(); 
    FileContentResult fileContentResult = new FileContentResult(ms.GetBuffer(), result.MimeType);
    fileContentResult.FileDownloadName = fileName;
    return fileContentResult;
}

=====================================================================================================================
Katia
Telerik team
 answered on 12 Sep 2016
4 answers
297 views
I don't want to download and install the trial just to test this one situation.  Can you please tell me if Telerik Reporting can wrap text around an image dynamically like the attached screen shot?  The images may be different sizes like seen in the screen shot.
Stef
Telerik team
 answered on 12 Sep 2016
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?