Telerik Forums
Reporting Forum
1 answer
261 views

Is it possible to add the code from the HTML5 report viewer to a view (cshtml file) in asp.net core 2.2 and have it work?  I am trying to avoid any static files. I followed this example:  https://docs.telerik.com/reporting/manual-setup-of-html5-report-viewer-in-asp-net-core-2.  I put the head info in the _layout.cshtml file and the viewer code on the index.cshtml.  It throws this error:

Uncaught TypeError: $(...).telerik_ReportViewer is not a function
    at HTMLDocument.<anonymous> ((index):87)
    at l (jquery-3.3.1.min.js:2)
    at c (jquery-3.3.1.min.js:2)

Dimitar
Telerik team
 updated question on 27 Jan 2025
1 answer
449 views

Hai,

I am spending hours and hours trying to get a simple Telerik Report to work in my Blazor web app.
All documentation on the website is for ASP.Net Core 6 and the ASP.Core 7 samples I can find, do not work for me...

I have a simple Blazor Web App that communicates with a Blazor Server using controllers and endpoints like. The data is stored in a SQL Server.

I have a table 'Genders' and I simply want to show a report with the fields id and name of table genders using the 'api/gender' endpoint to get the genders: 

var response = await httpDefaultClient.GetAsync("api/gender");
        if (response.IsSuccessStatusCode)
        {
            genderList = await response.Content.ReadFromJsonAsync<List<GenderModel>>();
        }

Is there a complete walkthough, thus including creating the Telerik report itself, creating the reportcontroller, in the server, adding services etc.

I am totally new to Telerik and I simply do not understand how to implement Telerik in my application.
Hope somebody can direct me to a good, working, sample or walkthrough... 

Regards, Marc

3 answers
211 views

I am getting html content from database and i am showing that in telerik report details section in table .In table body i have added htmltextbox . There is lot's of space between row and also need to align whole content in align left .but i am unable to get .I try replace function still not working.

Could u please help me to achieve this. I notice while loading the report  Telerik applying some of the classes 

If we add single &nbsp; it giving to much space due to Telerik rendering couple of tag by default

Petar
Telerik team
 answered on 23 Jan 2025
10 answers
1.4K+ views

I'm  having an issue with the parameters for a report I'm working on.

The query which is the data source for the report is a fairly complex one:

 

SELECT sub.AssignedCity, SUM(sub.TotalIndividuals) AS TotalIndividuals, SUM(sub.SumOfBoxes) As TotalBoxes, SUM(sub.SumOfMealsServed) As     TotalMealsServed, SUM(sub.SumOf60AndOverServed) AS TotalOver60Served, SUM(sub.SumOf18AndUnder) AS Total18AndUnderServed
FROM(

SELECT EntryMonth, EntryYear, AgencyID, AssignedCity, SUM(IndividualsServed) AS TotalIndividuals, SUM(Boxes) AS SumOfBoxes, SUM(MealsServed) AS SumOfMealsServed,,SUM(Over59Served) AS SumOf60AndOverServed, SUM(Over59Served) AS SumOf18AndUnder

FROM AgencyBoxes

GROUP BY EntryMonth, EntryYear, AgencyID, AssignedCity
UNION
SELECT EntryMonth, EntryYear, HouseholdID, AssignedCity, SUM(IndividualsServed) AS TotalIndividuals, SUM(Boxes) AS SumOfBoxes, SUM(MealsServed) AS SumOfMealsServed,
SUM(Over59Served) AS SumOf60AndOverServed, SUM(Over59Served) AS SumOf18AndUnder
FROM Boxes
GROUP BY EntryMonth, EntryYear, HouseholdID, AssignedCity
) sub
WHERE EntryMonth = @prmEntryMonth AND EntryYear = @prmEntryYear
GROUP BY AssignedCity

I'm getting an error saying that I must declare a scalar variable for the two parameters. I've never seen this error before, and I have no idea what the issue is.

I'm attaching all relevant files detailing report parameters, data source parameters, etc. Any advice would be very much appreciated.

Dimitar
Telerik team
 updated answer on 23 Jan 2025
1 answer
83 views

I have embedded Telerik report designer in angular application. I want to clone the existing report and create new report programmatically.  Can anyone provide pointer on how to achieve this? Closest I could find is this i.e. copy over all the report components one by one but I find it laborious and little risky if I miss anything while copying over. 

Thanks!!

1 answer
81 views

I'm trying to accomplish what's been asked over in this question: https://www.telerik.com/forums/graph-datetime-axis-scaling without using Events (which according to the docs here: https://docs.telerik.com/reporting/embedding-reports/program-the-report-definition/report-events/overview, you should avoid and are not support on the .trdx reports that I am developing via the Stand Alone Report Designer). 

How can I dynamically set the MajorUnit and/or MajorStep as the final solution there describes without using the events as that solution does? (solution I'm referring to: https://www.telerik.com/forums/graph-datetime-axis-scaling#4445917 )

Ivet
Telerik team
 answered on 23 Jan 2025
1 answer
108 views

I am using Telerik.Reporting.Services.AspNetCore and Telerik Report Designer version 18.2.24.806. I am facing the following issue: In Telerik Report Designer, I set the font to 'Times New Roman,' and it displays correctly according to the design in the local environment. However, after deploying to the production environment, I encountered an issue where some text boxes are correctly using the 'Times New Roman' font, while others are not.

Telerik Report Designer:

 

Local:

Production:

Petar
Telerik team
 answered on 22 Jan 2025
1 answer
149 views
I am using Telerik.Reporting 17 version in my .Net 8 project but i am limited to Telerik.Reporting.OpenXmlRendering 15 version. I am getting XLSX rendering not available error while downloading excel report. I have  DocumentFormat.OpenXml 2.13. please suggest if any configuration can be done to overcome this error 
Petar
Telerik team
 answered on 21 Jan 2025
1 answer
101 views

In my Angular application, I'm using Telerik Reporting and have embedded report designer in web page. That works well i.e. I'm able to load the reports from my server and load them in embedded report designer. Now when user is done with designing the report, I need to save the report manually using the code and not using the save button available in the Menu. This is required because I need to store some of the report information to my backend as well. I have following UI design at the moment and I would like trigger the report save when user presses "Publish" button.

 

I I can't seem to find any way to achieve this. What I'm looking for is some kind of reporting api/hook kind of thing which will enable me to trigger the save report process from my code. Can any one pls help on how to achieve this?

Also, how I can hide the buttons from Menu i.e. I want to hide few buttons i.e. Save, Save As from embedded report designer menu so user can only save the report using the buttons which I'm providing to them in UI.

Any help on this will be much appreciated. Thanks!!

Krunal
Top achievements
Rank 1
Iron
Iron
 answered on 21 Jan 2025
1 answer
123 views

Updating this, my EAN 128 barcode prints but it doesn't scan 

Can anyone help please. This worked with a different reports designer package. 

Fields.labelBarcode = "94002155449000028921" (for example) 

Report Designer:

   <Barcode Width="6cm" Height="1.635cm" Left="0.4cm" Top="2.044cm" Value="= Fields.labelBarcode" Stretch="False" Checksum="False" BarAlign="Center" Name="barcode1">
              <Style TextAlign="Center" VerticalAlign="Bottom">
                <Font Name="Code 128" Size="10pt" />
              </Style>
              <Encoder>
                <Code128CEncoder />
              </Encoder>              
            </Barcode>

 

Thanks.

 

Dimitar
Telerik team
 answered on 21 Jan 2025
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?