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.
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);
}
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
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.
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.
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,
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?
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