Hello,
i'm new with Telerik report designer. So i want to make a connexion to a MS Access file but window of "Choose an object context" came empty.
Is there any explanation for this case?
Thanks.
PLEASE VIEW THE ATTACHED SCREEN SHOT.
Setting ReportSource parameter does not set the ReportDocument parameter value.
Why is the parameter value not flowing to the ReportDocument as the docs state it does?
Thank you!
Karl
I have a TRDP or TRDX that I have resolved at runtime.
These TRDP and TRDX objects don't expose anything except parameters. Not sure why this is.
How can I set the DataSource at runtime?
(please don't ask why I want to do it, I just need to, thank you)
Karl
telerik report designer : 13.1.19.618
When I use IIF as = IIF(1 > 0, 1, 0/ 1) , it throws exception Attempted to devide by zero. I think it is a bug.
Does anyone know how to get the value of report parameters in the default report constructor? I am using Telerik.ReportViewer.Html5.WebForms. You used to be able to get it by the example below but this no longer works. Is there another way to get a reference to a parameter within the default constructor?
public partial class Report1 : Telerik.Reporting.Report
{
public Report1(int month)
{
//
// Required for telerik Reporting designer support
//
InitializeComponent();
//
// TODO: Add any constructor code after InitializeComponent call
//
int MonthParam = month;
}
}
when trying to change the page setup (especially page width and height) dynamically according to a specific input .
the page setup works fine when the system is in English (default) , but when changing the language the width and height parameters doesn't bind with the telerik report
* the report's data is in English
* Paper Kind : Custom , Width : 80 and Height:100
I have an issue on my Telerik charts where the data label will be inside of the column if the column reaches the edge of the chart area, as attached.
Is there anyway to force the chart to not reach the edge so this won't occur? I'm assuming it takes the largest value and uses that as the edge of the chart, how do I go about stopping this? I've made sure the DataPointLabelAlignment is set to OutsideEnd, as that would make the most logical sense.
Any help on this would be greatly appreciated - I'm sure it's something small and stupid that I'm missing!
Thanks,
I have created a line chart with a DateTime scale for the X-Axis, however it start's slightly offset from the Y-Axis. I know I can set this from the CrossAxisPosition on the X Axis scale, but it seems I can only set a pre-defined datetime value, as from the DateTimeScale.png attached, and not a dynamic one based of the datasource. Is this possible or is there a way around it?
Thanks,
I created a report with subreport in Standalone Report Designer. I want to export it to PDF programmatically. I created an example Windows Form Application which gets parameters from user with textboxes. And when user writes values to its indicated textbox and then presses export to pdf. Then my application export it to pdf. But I have something wrong there. I must get the datasource or connection from my report file in order to set it in the program. How can I do this ?
I will share my app's picture.
Here is my code :
01.
private
void
BtnExportPDF_Click(
object
sender, EventArgs e)
02.
{
03.
var reportProcessor =
new
Telerik.Reporting.Processing.ReportProcessor();
04.
05.
// set any deviceInfo settings if necessary
06.
var deviceInfo =
new
System.Collections.Hashtable();
07.
08.
09.
10.
// -2-
11.
// ***Declarative (TRDP/TRDX) report definitions***
12.
var reportSource =
new
UriReportSource();
13.
14.
// reportName is the path to the TRDP/TRDX file
15.
reportSource.Uri = @
"C:\Users\OE\Desktop\TelerikReport\Deneme.trdp"
;
16.
//var reportPackager = new ReportPackager();
17.
//using (var sourceStream = System.IO.File.OpenRead(@"C:\Users\OE\Desktop\TelerikReport\Deneme.trdp"))
18.
//{
19.
// var report = (Report)reportPackager.UnpackageDocument(sourceStream);
20.
//}
21.
//Telerik.Reporting.SqlDataSource sqlDataSource = new Telerik.Reporting.SqlDataSource();
22.
//sqlDataSource.ProviderName = "System.Data.SqlClient";
23.
//sqlDataSource.ConnectionString = "Data Source=(local)\\SQLEXPRESS;Initial Catalog=AdventureWorks;Integrated Security=True";
24.
25.
26.
// -2-
27.
28.
// -3-
29.
// ***Instance of the report definition***
30.
//var reportSource = new Telerik.Reporting.InstanceReportSource();
31.
32.
// Report1 is the class of the report. It should inherit Telerik.Reporting.Report class
33.
//reportSource.ReportDocument = new Report1();
34.
// -3-
35.
object
parameterValue = txtBasDep.Text;
36.
reportSource.Parameters.Add(
"basdepid"
, parameterValue);
37.
object
parameterValue1 = txtBitDep.Text;
38.
reportSource.Parameters.Add(
"bitdepid"
, parameterValue1);
39.
object
parameterValue2 = txtSonDogum.Text;
40.
reportSource.Parameters.Add(
"sondogumtar"
, parameterValue2);
41.
42.
Telerik.Reporting.Processing.RenderingResult result = reportProcessor.RenderReport(
"PDF"
, reportSource, deviceInfo);
43.
44.
// Pass parameter value with the Report Source if necessary
45.
46.
47.
string
fileName = result.DocumentName +
"."
+ result.Extension;
48.
string
path = @
"C:\Users\OE\Desktop\TelerikReport"
;
49.
string
filePath = System.IO.Path.Combine(path, fileName);
50.
51.
using
(System.IO.FileStream fs =
new
System.IO.FileStream(filePath, System.IO.FileMode.Create))
52.
{
53.
fs.Write(result.DocumentBytes, 0, result.DocumentBytes.Length);
54.
}
55.
56.
MessageBox.Show(
"The report has been exported!"
,
"Message"
, MessageBoxButtons.OK, MessageBoxIcon.Information);
57.
}
58.
}
Hello,
I have an old code that works perfectly until today.
i use html5 reporting viewer to display the report.
when user click on print button - the chrome print dialog should be display, but in chrom 77 it's doesn't work.
I try debbuging the code, it seems that work and not failed but nothing happend:
function printDesktop(src) {
if (!iframe) {
iframe = document.createElement("IFRAME");
iframe.style.display = "none";
}
iframe.src = src;
document.body.appendChild(iframe);
}
Thanks,
Sari