Telerik Forums
Reporting Forum
5 answers
716 views

Hi,

I'm using telerik report designer R3 2016, and i want to make my textbox dynamic, the textbox should increase according to the number of characters in a word.Please help.

Stef
Telerik team
 answered on 10 Apr 2017
1 answer
92 views
I tried creating simple report with table, it renders fine in x86 but not in 64. Also not rendering in VS2015, getting system out of memory (data set only 1000 rows)
Stef
Telerik team
 answered on 10 Apr 2017
1 answer
1.3K+ views

How can i load report from file and change data source?

 

For example:

I have "report1.trdp", saved in "c:\reports". 

MyRptService needs to open it, pass data as object collection (matching field names in report) and output to pdf.

In below example I can open report and output to pdf but I dont see any way to set different datasource

 Telerik.Reporting.Processing.ReportProcessor reportProcessor =
                    new Telerik.Reporting.Processing.ReportProcessor();

                // set any deviceInfo settings if necessary
                System.Collections.Hashtable deviceInfo =
                    new System.Collections.Hashtable();

                var uriReportSource = new Telerik.Reporting.UriReportSource();

                // Specifying an URL or a file path
                uriReportSource.Uri = @"C:\data\reports\Report1.trdp";

                    

                Telerik.Reporting.Processing.RenderingResult result =
                    reportProcessor.RenderReport("PDF", uriReportSource, deviceInfo);

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

                using (System.IO.FileStream fs = new System.IO.FileStream(filePath, System.IO.FileMode.Create))
                {
                    fs.Write(result.DocumentBytes, 0, result.DocumentBytes.Length);
                }

Stef
Telerik team
 answered on 10 Apr 2017
1 answer
155 views

Hello,

We have a WPF project that's referencing both Telerik.Windows.Controls.Chart and Telerik.Windows.Controls.Charting.  In that project, I'm including a simple LineSeries within a RadCartesianChart in XAML.  The associated .xaml.cs file specifies only

using Telerik.Windows.Controls.ChartView;

 

When building, I'm getting an ambiguous type reference error for "LineSeries", so I tried adding a XAML namespace for clarification: 

xmlns:telerik_ChartView="clr-namespace:Telerik.Windows.Controls.ChartView; assembly=Telerik.Windows.Controls.Chart"

This code creates an invalid namespace identifier, however.  Can you please advise?

Thank you,

E

 

 

 

E Pons
Top achievements
Rank 1
 answered on 07 Apr 2017
1 answer
156 views

When I have same data for two or more y axis values, the lines on line graph overlap and I cannot identify which line is for what.

Attached is the picture to explain the scenario.

 

In the image 'Eastern Cape' and 'Western Cape chaekers' have same count = 3. we can see western cape orange line but red line is hidden behind the orange line.

 

Please suggest how can we show both lines.

Katia
Telerik team
 answered on 07 Apr 2017
1 answer
236 views
The report parameter values are displayed in a div with list of options to select, instead of dropdown select list. Is there any option to change the format.
Katia
Telerik team
 answered on 07 Apr 2017
1 answer
419 views

I  try to print reports without any gui (like ReportViewer or Print Dialog), to generate a lot of different documents from code behind. I would like that  users can coninue to work during this process.

I trying to do that  in this way:

Public Sub QuickReportPrint(Config As Config, ReportSource As ReportSource)
       Dim printer = Config.PrinterName

       Dim setting As New PrinterSettings()
       setting.PrinterName = printer
       setting.Copies = Config.CopiesPrint
       If setting.SupportsColor Then
           setting.DefaultPageSettings.Color =true
       End If
       Dim paperSource = GetPaperSource(setting, Config.PaperSource)
       If papaerSource IsNot Nothing Then setting.DefaultPageSettings.PaperSource = paperSource
       Dim processor = New ReportProcessor()
       processor.PrintReport(ReportSource, setting)
   End Sub

 

Unfortunatly, while i'm printing my reports, apears  a  popup windows, like those one in atatched file.

 

Peter
Telerik team
 answered on 07 Apr 2017
0 answers
296 views

Hi,

   i am using standalone telerik report viewer so i am not using c#, everything with stored procedure and report viewer,trdp files.currently having a problem with picture box that was binding with stored procedure.it showing error like 

An error has occurred while processing PictureBox 'pictureBox1':
Invalid image data.
------------- InnerException -------------
Parameter is not valid.

please update the answer as soon as possible

Thank you,

varahala babu
Top achievements
Rank 1
 asked on 07 Apr 2017
1 answer
68 views

How do I prevent x-axis labels on Reporting charts being forced to certain data types.

 

As you can see in my sample, the data table shows that the x-axis should be text, but the chart has forced the x-axis to be numeric and where it can't parse the value as a number it shows it as 0.

 

How can I make it show as text, like in the data table on the left?

Ivan Hristov
Telerik team
 answered on 05 Apr 2017
0 answers
227 views

Hello,

I was wondering if there is a way to set the text trimming of reporting textbox for my reports as we have for normal texblocks in wpf. Is there a way to do the same?

I would love to do something like: textbox.Texttrimming = TextTrimming.CharacterEllipsis

Thanks,

Gaurav 

gaurav
Top achievements
Rank 1
 asked on 05 Apr 2017
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?