I'm exporting a report programmatically to PDF using code like this:
var reportProcessor = new Telerik.Reporting.Processing.ReportProcessor();
var deviceInfo = new System.Collections.Hashtable();
var reportSource = new Telerik.Reporting.UriReportSource();
reportSource.Uri = "<My report path>.trdp";
//Various parameters are set
object ParmValue;
ParmValue = "<My value>";
reportSource.Parameters.Add("<My parameter name>", ParmValue);
Telerik.Reporting.Processing.RenderingResult result = reportProcessor.RenderReport("PDF", reportSource, deviceInfo);
After this I save the result into SQL server for retrieval later. For these reports I always get a result object back even if there are no data rows returned from the database query the report makes (it still has headers/footers/etc. but no details). What I'd like to do is determine if there weren't any data rows returned and take alternate action myself.
Is there a way to determine how many data rows were retrieved by the report? The only solution I can come up with at the moment is querying the database twice; first without the report being involved to see if the database query will returns any rows; and then again by the RenderReport method if there's data to report on. That isn't efficient though. Is there something in the report objects that will tell me if there was no data returned to the report?
Hi,
I'm struggling to authenticate a Microsoft Dynamics 365 webservice with OAuth2.
I'm using the Web Service Data Source wizard within the Report designer to connect to the Web service but not having any luck. I can successfully access the Web service and OAuth2 API in Postman.
When I try to download the response in the preview window, I get a 400 bad request error. I believe the problem is with fetching the token/authentication but not sure.
Can someone please tell me what I'm doing wrong?
How do I create a dropdown with the options of: greater than >, less than <, or equal to =, then have a textbox for the value?
See attached image for something similar I am looking for. I'm trying to make a report where the user can enter a number, then select one of the options I just described. I've been stuck on this for a week!!!
I've read so many articles, and watched 7-8 year outdated youtube videos. Any help is greatly appreciated!
-Chris
Hello,
For the WPF report viewer, we can localize almost everything... excepted for the export formats.
I'm talking of the list that appears when we click the "Export" button on the viewer. The drop down list contains English text, such as "Acrobat (PDF) file" that can't be localized.
Do you have any tip to make them change to another language?
Regards
hello,
I don't want to use the built-in export functionality that comes with HTML 5 Report.
Is there a way to download report with click in PDF format.
Thank you.
Hello,
I'm trying to add a dashed horizontal line and a dashed vertical line to a report.
First question: how can I have the line at the top of the page (this is a sub-report)?
Second question: is it possible to customize the dashing?
I have lines that are 0.5pt width and the line looks almost like a solid line, excepted when looking with a magnifier!
Best regards
Getting an error, while using method. What can be the reason ?
Version using: "Assembly RadGridReportingLite, Version=1.10.2.1, Culture=neutral, PublicKeyToken=null"
Dim report As New RadGridReport("")
report.ReportFormShow(Me, Me.rgvPrint)
Error Details
System.MissingMethodExceptionI have some table groups. I would like to hide the dynamic of each column group depending on the user option.
the example I have 3 groups
with 2 checkboxes.
if check box 1 = tick =>display group 1
if checked 2 box = tick =>display group 2
If I used <TableGroup Name="group28" Visible="True/False"> it can show/hide. But not dynamically
If I used like this. It can not work.
<TableGroup Name="group28">
<Bindings>
<Binding Path="Visible" Expression="= IIf( Parameters.InclAccessDetails.Value=True,False,False)" />
</Bindings>
Does TableGroup not support Visible with expression?
Thanks
Dang Le
This is no longer an issue. Is export fine with latest packages:
<PackageReference Include="DocumentFormat.OpenXml" Version="2.8.1" />
<PackageReference Include="Telerik.Reporting" Version="16.0.22.225" />
<PackageReference Include="Telerik.Reporting.OpenXmlRendering" Version="16.0.22.225" />
Problem was "xlxs" rather than xlsx".