Telerik Forums
Reporting Forum
1 answer
326 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
228 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
175 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
64 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
383 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
227 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
282 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
139 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
4 answers
325 views

For reasons of hiding customer details from other customers, I've elected to create some custom reports for my application using the standalone report designer.  The idea is that I can create any number of customized reports and drop them into place on each customer's machine as appropriate.

I initially used .TRDP format, and it works fine; however, when branching a codeline with SVN, I realized I couldn't merge binary files very well, so I decided to go with .TRDX format for the ability to diff & merge report definitions. 

In turn I created a bit of stand-alone code to run in my build environment that would convert all the TRDX files to TRDP for distribution.

This uses the same method shown on the Telerik Reporting documentation; that is:

            using (var targetStream = File.Create(destfn)) {
                var xmlString = File.ReadAllText(sourceName);
                 reportPackager.Package(xmlString, targetStream);
            }

However, when I do this, and try to load the resulting TRDP in either stand-alone Report Designer or load into my ASP.NET code, I get errors saying "Resource Not Found".

My reports typically have a customer-specific PictureBox, so there's an embedded resource block, which I believe is the issue.

I tried converting my original TRDP and "packaged" TRDP file names to .zip so I could inspect them.   The original TRDP has two XML files and a folder Images with a JPG file - "pictureBox1.Value.JPG".   The packaged TRDP just has two XML files, and there's a very long BASE64-like block, no separate image files.

How can I achieve this goal in an automated fashion?

 

Stef
Telerik team
 answered on 10 Sep 2016
5 answers
442 views

Which is the correct DataSource to use for an Azure Database, SQL Data Source?

Documentation here doesn't seem to mentioned Azure Databases at all:

http://docs.telerik.com/reporting/quick-start-create-simple-report

Stef
Telerik team
 answered on 09 Sep 2016
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?