Telerik Forums
Reporting Forum
1 answer
103 views

Hello There

I am using HTML5 Report Viewer and exporting the report on a button click.

 

var rv = $("#reportViewer1").data("telerik_ReportViewer");
rv.commands.export.exec("PDF");

I am getting the PDF url created in exportEnd event of the viewer. All working fine.

 

I am wondering is there a way, i can get the PDF url without exporting, because the built in export is navigating the new tab, which i don't want to go to new tab in mobile browser.

Thank you.

Lance | Senior Manager Technical Support
Telerik team
 answered on 24 Oct 2022
1 answer
325 views

While rendering report got Error like this Error loading the report viewer's templates. (trvTemplateUrl = 'https://abcdf.com/api/reports/resources/templates/telerikReportViewerTemplate-16.0.22.225.html/').  when i try this same telerik reporting from other domain it's working only this domain it gave this error. and network it shows like CORS error. we don't know where to allow all the domain address.       In Asp.net we have this config to enable CORS          



  services.AddCors(c =>
            {
                c.AddPolicy("AllowOrigin", options => options.AllowAnyOrigin().AllowAnyHeader().WithExposedHeaders("X-total-count")); 
                c.AddPolicy("ReportingRestPolicy", corsOptions => corsOptions.AllowAnyOrigin().AllowAnyMethod().AllowAnyHeader());
            });



            app.UseCors("ReportingRestPolicy");
And We noticed that if i try to run domain1 with chrome and domain2 with Edge. both domains are working.  In same browser which domain i run first that works. If i try to run next domain it gives error.
1 answer
105 views
I'm calling a webservice that returns four json arrays.  Do I really have to call the webservice four times to show four tables (one from each array)?  There's no way to make one call and construct tables from the different json paths?
Todor
Telerik team
 answered on 20 Oct 2022
1 answer
157 views

Hello Team,

I am looking to build report similar to below image 1, but only lines are displayed for min, max, monthend and yearend 

 

how to fill in bar color ? any properties to set ?

image 2 is created using telerik report designer (candelstick chart)

Dimitar
Telerik team
 answered on 19 Oct 2022
1 answer
357 views

Hi,
I'm having problem when showing report when I run Telerik Reporting REST service is Docker (Linux OS). As a report viewer I use HTML5 report viewer. For serviceUrl we can set http port of current host port from the container. The problem is when we preview the demo report, it shows like this error: "Unable to get report parameters..."

You can see the Demo project from my GitHub to reproduce the problem.

Project with html5 report viewer: Tursunkhuja/Telerik-HTML5-Report-Viewer-in-UWP: Show HTML5 report viewer in UWP window (github.com)
Project with reporting service project: Tursunkhuja/Telerik-Reporting-REST-Service: Telerik Reporting REST service. Docker (Linux OS) is enabled. (github.com)

Any idea on how to run Rest Service project in Docker correctly?

FYI: If we use "IIS" to run the Rest Service project, it works fine so it will show the demo report (Barcode examples report) without any error.

 

Todor
Telerik team
 answered on 19 Oct 2022
1 answer
83 views

I have a Web API from which I get a list or Objects, Each Object has a List of subobjects inside of it. I would like to build a report that for each element of the top list fills 2 textboxes and fills a table with the sublist, and copy that group of elements for each member of said parent list.

Can this be done?

List<Object1> is recieved from the datasource

Object1 -> FirstName, LastName, DoB, List<Object2>

Object2 -> Email, Number etc...

 

Dimitar
Telerik team
 answered on 17 Oct 2022
2 answers
191 views
Now .trdp file name is the document map default name. As given the screen shot. how to set dynamic name for it?
1 answer
99 views

Hi,

I am trying to implement the Web Report Designer using version 16.2.22.914 under .NET Framework 4.8.

When I try to create a report (both trdx and trdp), the following method gets called

Task<byte[]> GetAsync(string resourceName)

It either returns some bytes or null whether or not the report already exists. The following method then gets called in 3 out of 4 different scenarios (defined below)

Task<ResourceFileModel> SaveAsync(SaveResourceModel model, byte[] resource)

- Scenario 1: Creating a trdx that already exists
- Scenario 2: Creating a trdx that doesn't exist
- Scenario 3: Creating a trdp that already exists
- Scenario 4: Creating a trdp that doesn't exist

When dealing with scneario 4, the SaveAsync method is never called and I get the exception shown in 1_error.png

I have no idea what the difference is and what could cause this issue.

Thanks in advance,

Arthur

Dimitar
Telerik team
 answered on 11 Oct 2022
1 answer
122 views

Hello there,

I have used Solution 2 from the below link, to print the nested data.

https://docs.telerik.com/reporting/knowledge-base/hierarchical-report-from-nested-data

Here an object is created in code behind with query. my question how can i pass parameter to this sql query. QueryString, Session is not accessible here.

Please advice.

 

Todor
Telerik team
 answered on 10 Oct 2022
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?