Hi,
I have an existing WPF project of .net framework 4.6 supported. Now I have upgraded Telerik;s WPF libraries to 2023.1.315.45 these are NoXaml binaries. We have also reports been used into the same project, I have upgraded to the version 17.0.23.315.. For reports have I have used libs : Telerik.Reporting.dll, Telerik.Reporting.XpsRendering.dll and Telerik.ReportViewer.Wpf.dll.
When I run it is crashing asking to use .40 version of the library of Telerik.Windows.Controls.dll. Can you please let me know with the given version how can I used both into the same project. I never had this issue older version, by older, I mean versions from 2021 (very old).
Looking forward to hearing back from you.
Thanks,
Parthiv
Hello,
I have an WebAssembly blazor project and I am trying to display a report in a Telerik ReportViewer. I am not even sure if what i'm trying to accomplish can be done. I would like some help / idea on how I can accomplish that.
Here how my project is setup. The client side, make a call to a controller, which does some logic (go to the database, get some data) then send that data into the report. The controller return a byte[] which contains the report (in PDF format for now)
Here an example of the code in the Server Side
[Route("api/[controller]")]
[ApiController]
public class ReportsController : Controller
{
[HttpPost("CreateReport")]
public ActionResult CreateReport(ReportCriteria criteria)
{
var datas = repo.GetData(criteria);
var myReport = new MyOwnReport(); // instance of type Telerik.Reporting.Report
myReport.objDataSource.DataSource = datas;
myReport.txtTitleValue = "My Report Title";
... // other manual operation on the report
ReportProcessor reportProcessor = new ReportProcessor();
InstanceReportSource instanceReportSource = new InstanceReportSource
{
ReportDocument = myReport
};
RenderingResult result = reportProcessor.RenderReport("PDF", instanceReportSource, null);
return Ok(result.DocumentBytes);
}
}
Is there any way that, on the client side, when I receive those bytes, I put those bytes directly on a Telerik Report Viewer ? Something like this, but using ur Telerik report? (where _report is the byte[])
<embed src="@_report" style="width: 100%; height: 100%;" />
Any idea how I can accomplish something like that? I feel like the Telerik reporting only work when all the logic is inside the "Telerik.Reporting.Report class" but its doesnt really work with the way our report are build.
Any help or tips or direction will be apreciated
Thank you
David
Hi,
I have to create a special donut chart like below image by using Telerik designer, is it possible? And another question, how to design chart legend look like this picture, separate category into 2 sections?
I really appreciate any answers, thanks for helping us.
Good Afternoon Telerik Support,
I am trying to format an Averaged date & time between two values as HH:MM:SS (see screenshot). However, when I used the format Date & Time value for HH:MM:SS it gives me the following error (see screenshot) How can I fix this as I do not want the milliseconds at the end and it seems to keep adding it.
(Average Combined Time)
(Error After formatting it to HH:MM:SS ({0:hh:mm:ss})
Thank you!
Good Afternoon Telerik,
I run a report for the previous month at the beginning of every month. In example, Today's Month is April- I run the report for the entire Month of March. How can I create a Text field within Telerik that will show the previous month in example March and updates every month so if I run it May 1st it'll show April etc..?
I've tried the following functions but kept getting an error. (see screenshot)
= Today(AddMonths() -1)
I've got two reports, one of which is a copy of the other. The original report prints successfully. The copy will print but only if the "Go" button is pressed on the printer. How can I set the copy to not require the "Go" button? Is it a setting in Properties? I see no differences between the two reports.
I'm using version 16.1.22.622 of report dll's. Visual Studio 2019.
The printer is an HP LaserJet P2015.
By the way, the copy will print without intervention on a HP LaserJet P2055dn.
Thanks for your help or advice.
Hi,
I understand there are two view modes: Interactive and Print Preview.
My question: How do I load all pages on print preview mode?
What I am getting at the moment is the ReportViewer (on Print Preview Mode) loads 2 first pages, and waits for the user to scroll down the ReportViewer before loading the next page (page 3, 4 and so on).
Thanks,
Angga
Hi,
I'm migrating my solution from Dot Net Framework to Dot Net Core 6. On Local Dev Machine which is running on Windows, the reports are getting generated without any issues, but when the same is run in a Docker Container it fails with the following exceptions.
I have already tried installing the required libraries which are mentioned in this post but the same persists
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base WORKDIR /app EXPOSE 46555 RUN apt-get update \ && apt-get install -y --allow-unauthenticated \ libc6-dev \ libgdiplus \ libx11-dev \ && rm -rf /var/lib/apt/lists/* FROM mcr.microsoft.com/dotnet/sdk:6.0 AS setup WORKDIR /src RUN dotnet restore "SampleProject/SampleReports.csproj" COPY . . FROM setup AS build WORKDIR "/src/" RUN dotnet build "SampleReports.csproj" -c Release -o /app/build FROM build AS publish RUN dotnet publish "SampleReports.csproj" -c Release -o /app/publish /p:UseAppHost=false FROM base AS final WORKDIR /app COPY --from=publish /app/publish . ENTRYPOINT ["dotnet", "SampleReports.dll"]
Other information that I would like to add are that my solution uses direct references to Telerik dlls.