Telerik Forums
Reporting Forum
1 answer
256 views

Hello Forum,

I can render a PDF with ReportProcessor.RenderReport() successfully.

Now I want to encrypt the PDF, there seems to be two ways to do this with the PDF Device Information Settings:

1. Set the user and owner password. This works, but it is not a solution for my use case, because it requires a clear password.

deviceInfo.Add("OwnerPassword", "myPassword");
deviceInfo.Add("UserPassword", "myPassword");

2. Use a certificate for encryption. This does not work, but would be my preferred solution.

deviceInfo.Add("SignCertFilename", "C:\\Temp\\my.cer");
deviceInfo.Add("SignCertPassword", "myPassword");

I cannot find an example which utilizes the device info SignCertFilename (google "Telerik SignCertFilename" returns one result, which links to above documentation).

Does the encryption with a certificate actually work?
Do you have an example code for me, maybe I must set a specific device information.
If you wish, I can deliver a minimal working example.

Thank you for reading!

Todor
Telerik team
 answered on 25 Jan 2022
0 answers
133 views

Good Morning,

I am trying to generate a simple report using a CSV data source. The data source contains applicant information including their university, name, state, etc. The CSV also contains information on the stage of the application, whether it was a whitepaper or full proposal etc. When trying to generate a simple bar chart of the count of the different stages, (i.e.,  count of how many whitepapers) the field stage also contains the states on the y axis in the chart. It seems the field stage and state are being intertwined when this is not what I want. Is there any solution to this? These fields are clearly separated in the CSV and the data preview when importing the CSV.

 

Thanks

0 answers
606 views

Hi All, 
I need display Telerik report inside a razor page in the .NET framework MVC app.

I attached the design I need to build. 
Top of the razor page I'm selecting parameter values for stored procedure. Based on that values report will show the details.
I tried html5 reports and mvc reports. But those are not helped to do my requirement

If anyone is having suggestion, resources or ideas, please insert here. It would be much helpful for me

Thank you

Mail
Top achievements
Rank 1
 updated question on 24 Jan 2022
0 answers
478 views

Hllow,

We using with Rest API

In our project we use with 2 different ways with the reports:

sometimes with html5 report viewer. and other time we render the reports in the code with ReportProcessor, RenderReport.

Until now we use wit previous version of telerik reporting (from 2015)  and now we upgrade our solution to newer version,

We need to use in the reports with http.context data.

From 2018 this data is not available in report possessing, I override the GetUserIdentity function in the reportscontroller. In the reports I success to get the user data.

But when I Render the reports at code I do not now how to send to report this data(UserIdentity). Additionally,  when I try to get data from UserIdentity.Current in the report (after call render report function) I get older data of another report with proccessing from HTML5 viewer.

My questions:

1. Is there a way to use UserIdentity in ReportProcessor.RenderReport? (find attached option2-render report.PNG)

2. Why I sometimes get old value in reports which call from RenderReport function?

Thanks,Chani

Chana
Top achievements
Rank 1
 asked on 23 Jan 2022
0 answers
150 views

I need to be able to see a different MarkerType per SeriesGroup in a LineSeries on my graph. For one of the groups I want a square, for the other I want a circle. I need to be able to set this in the Standalone Designer. Unfortunately, as far as I can tell this property is not available in ConditionalFormatting anywhere nor in any Bindings but I could be overlooking it.

Is it possible to set the MarkerType to one of the built-in types for each group in a LineSeries or do I have to make wholly separate series?

Ryan
Top achievements
Rank 1
Iron
Iron
 asked on 18 Jan 2022
1 answer
348 views

I am calling a JSON Webservice that does not return a nested object if the values are null.

I am using the value of the nested object (Fields.Orders.Salesperon.Name) in a detail row of my report.

This results in an error for any rows with no salesperson: "The expression containt object 'Name' that is not defined in the current context".

Here's a sample of what's being returned from the webservice:

{
  "Orders": [
    {
      "OrderNumber": 1,
      "Salesperson: { "Name": "Joe Example" }
    },
    {
      "OrderNumber": 2,
      "Salesperson: {}
    }
}

OrderNumber 1 will print fine. The row for OrderNumber 2 will have an error box.

Screenshot from the actual report:

 

How can I prevent this? I've tried null checks, value binding, conditional formatting... but it all throws an error because it's trying to access the nonexistent "Name" field on a record.

0 answers
818 views

I have a large library of .Net 4+ reports and I want to upgrade them in such a way that they will work in a Blazor Report Viewer.

If it is a simple report with parameters, I can convert to .trdp fine and it works.  However, I have a large number of reports that are much more complex.  I am used to loading them in as an InstanceReportSource in code behind (WebForms project) and doing a variety of things to them, one big one is specifying specific data sources at runtime and then loading the report.

I am finding minimal examples on how to do anything in Blazor, but I will start with this question:  How do I change/specify a datasource for a report at runtime and then display the report in Blazor ReportViewer?

 

 

Eli
Top achievements
Rank 1
Veteran
 asked on 13 Jan 2022
1 answer
342 views
Hello,

I'm using WebReportDesigner in the React application. One of our key requirements is to use Authentication, because the users from different tenants have different storages, different settings, configuration, etc.
Since the WebReportDesigner does not support Authentication, I've used the approach described here: https://feedback.telerik.com/reporting/1486109-pass-bearer-token-authentication-with-web-report-designer-api-requests 

Everything works fine until we use the URI subreport in our report. It fails to render with the error message:
"An error has occurred while processing SubReport 'subReport1':Response status code does not indicate success: 401 (Unauthorized)."

The Report Engine most likely makes internal HTTP call to the "/reports/{reportId}" without authorization HTTP headers, cookies, etc., and that's why the HTTP call could not be authenticated.

I have also tried to override the virtual "IActionResult GetReport(string reportId)" method, but can't find any useful info about the logged-in user.

Btw: we face the very same issue in the WebViewer, which supports authentication (by passing authenticationToken - it's not forwarded when resolving the subreports).

How can we use subreports with our authorized API controllers?

Thank you!
Todor
Telerik team
 answered on 13 Jan 2022
0 answers
187 views

We have recently updated from v10 to v15 of Telerik Reporting via the Report Upgrade Wizard.  Everything is looking good for all of our report files but I did notice an issue with Conditional Formatting.  Conditional Formatting seemed to work intermittently across different reports.  I opened one of these reports in the VS 2019 Designer and changed the formatting and saved it and it started working as it had before.  When I compared the differences I noticed the precision of the drawing locations for the controls had been changed.  The Conditional Formatting was the same.

This is kind of a multipart question so I apologize in advance.

1. Is there a way to force the designer files to be regenerated across all of the report files in my solution?

2. Are there any know issues with Conditional Formatting that would not allow the following code to work?

//When we are not on page 1 show this panel.

formattingRule1.Filters.Add(new Telerik.Reporting.Filter("=PageNumber", Telerik.Reporting.FilterOperator.Equal, "=1"));    formattingRule1.Style.Visible = false;

Thanks,

Eric

Eric
Top achievements
Rank 2
 asked on 13 Jan 2022
0 answers
278 views
We are creating QR code label reports using Telerik Reporting.  The top row alligns within the label borders but drops a little on each subsequent row until the text is below the bottom border on rows 3 to 5.  How can I get the label to maintain it's top margin
Randy
Top achievements
Rank 1
 asked on 13 Jan 2022
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?