Telerik Forums
Reporting Forum
1 answer
249 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
102 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
319 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
220 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
174 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
62 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
 answered on 12 Sep 2016
1 answer
376 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
222 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
3 answers
276 views

Hi,

I'm working with Telerik Reporting Q1 2016 SP1 version 10.0.16.204. I have made reports with sub reports in the past (using the same version of telerik reporting). I am trying to create a report with a sub report now and it does not show any sub reports in the object instance list. 

Am I missing something here?

The previous created reports still have their respective sub-reports but trying to add a newly made report as a sub report is not possible. The only sub reports in the list are the ones already made in the past.

I see the following (see attached screenshot).

Any tips would be greatly appreciated since we require reports using sub reports.

Stef
Telerik team
 answered on 12 Sep 2016
1 answer
134 views

It's been awhile since I've been on the Telerik reporting forum , but have an urgent need by a client that I'll be working through the weekend on.  They would like to print out the results of a survey, and depending on the selection, the responses contain a significant portion of text - which contains underlying, bolding, etc. 

How can I store this content to print out on the report with the formatting in place?  I've read some answers from 2012, and I'm hoping that things have changed for the better in 2016.

 

Regards,

Richard

Stef
Telerik team
 answered on 10 Sep 2016
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?