I have an old VB.NET(.NET8) winforms app which loads some resources on sign in using
Image.FromFile("resources\\myImage.png"
This is loaded from the resources sub folder in the runtime directory - so far so good. I also allow the user to change the "focus" of the application, which loads a different image, again so far so good - all of the images are correctly found.
However, if I show the Winforms report viewer, the Directory.CurrentDirectory is reset from the correct runtime folder to the folder which contained the report (which is a UNC share)
This means that loading the images fails - it's looking in the reports directory rather than the runtime directory.
Any one have any ideas on how to solve this?
I have a C#, WPF application that generates some data. I need to put that data into various Tables in a PDF file.
I'm trying to create a Table in a PDF by following this example.
I don't know if the Table is:
Telerik,Reporting.Table
or
Telerik.Reporting.Processing.Table.
Either way, I cannot get it to work.
If I use:
Telerik.Reporting.Table table = new();the table does not have ".Rows."
If I use:
Telerik.Reporting.Processing.Table table = new();I get the following error:
'Table' does not contain a constructor that takes 0 arguments.
Please help, I have not been able to find a way to get this to work.
Thanks,
Terry



Due to the recent changes regarding developer licensing, I have been asked to get clarity on what is allowed regarding developer license assignment, and the resulting impact on ensuring that built files are correctly licensed.
According to "https://www.telerik.com/purchase/faq/licensing-purchasing", under "How do I assign developers and managers to the purchased licenses?", it states that "The license holder can assign license developers and managers through Your Account in the section Licensed Users and reassign them anytime." This wording appears to suggest that developer licenses can be reassigned freely as needed, yet my understanding is that this is not the intended interpretation, and that reassignment is only permitted under specific circumstances. I have not been able to find any documentation that explicitly states this.
Our concern arises from how these licensing changes affect the building of .NET assemblies. According to the license agreement at "https://www.telerik.com/purchase/license-agreement/reporting-dlw-s", we are granted what appears to be an unlimited testing and building license, not restricted by seat count, however the new licensing behavior seems to conflict with this. Any assembly that uses Telerik Reporting and is built by an unlicensed developer will be unlicensed at runtime.
4.A.1.1.2. Testing and Building License. If you purchase a Developer License, you may also use (as applicable based on the Product(s) identified in the Order or included in the DevTools collection(s) identified in the Order) the UI/Kendo Products Product Package, and/or Progress Telerik Reporting Product Package in the testing and building of Your Integrated Products. Testing consists of one or more of the following functions: retrieving source code developed by your Licenced Developers from the source control repository, and/or using a compiled version of Your Integrated Product, for the purposes of quality assurance (i.e. writing tests and manually testing). Building consists of one or more of the following functions: retrieving code developed by Your Licensed Developers from the source control repository, compiling such code (without making or performing any modifications, customizations, configurations, or further development actions which utilize or impact the Products) and checking dependencies and modules, running automated unit tests, linking libraries and code, building and storing artifacts, archiving build logs, and publishing/distributing Your Integrated Products to your Permitted End Users. This testing and building license is not limited to a number of seats.
Additionally, at least one cross‑reference within that license agreement appears to point to an incorrect section number (the one referring to the definition of a user points to the section adjacent to the actual definition); the rest may be worth a brief look.
If there is a page that explicitly clarifies the intended rules around developer license assignment and reassignment, I would appreciate being directed to it. If no such clarification currently exists, I recommend including this information in the appropriate documentation, as the current wording appears ambiguous.
Thank you in advance for your guidance.
Hello.
I am using ASP.NET Framework, and in the Telerik.Reporting.Graph section I have a chart that is populated by a stored procedure.
The output of my stored procedure has three columns: DayOfMonth, ProductionType, and Value, and it is structured as follows.
| DayOfMonth | ProductionType | Value |
| 1 | Staple | 1244 |
| 1 | SumAll | 3066.2 |
| 1 | Tow | 1822.2 |
| 2 | Staple | 624.9 |
| 2 | SumAll | 3984.6 |
| 2 | Tow | 3359.7 |
| 3 | Staple | 1865.38 |
| 3 | SumAll | 5126.18 |
| 3 | Tow | 3260.8 |
ProductionType has three values: Tow, Staple, and SumAll.
I need SumAll to be displayed as a line chart, and Tow and Staple to be displayed as bar (column) charts within the same chart.
DayOfMonth should be displayed horizontally on the X-axis and represent the days of the month.
No matter how much I tried, I could not limit the ProductionType values in the line chart using the filters in:
so that only ProductionType = SumAll is shown in the line chart.
The only place where I managed to apply this filter was in:
but that filters the entire dataset, causing the bar chart to be filtered as well.
Please help me with this issue.
A sample of my code is attached.
Thank you.

Hello,
I have a TRDX report where the data comes from SQL stored procedures.
The report works successfully at runtime, and the data is returned correctly by the stored procedures.
However, in the Telerik Report Designer, I get errors like:
Object 'XXX' is not defined in the current context
=Fields.SomeField
=Fields.OtherFieldSo we are in a situation where:
SQL returns the fields correctly
The application renders the report correctly
But the Designer does not recognize the fields
And shows “not defined” errors during design time
What I understand
It looks like the Designer cannot infer the field schema from stored procedures unless they return static metadata.
Question
What is the recommended/best practice way to expose stored procedure output fields to the Designer so we avoid the “Object not defined” errors?
For example:
Should we add dummy
SELECTstatements for metadata?Is there a supported/recommended pattern for TRDX reports using stored procedures?
Is there another way to force the Designer to read schema?
Important Note
I am not asking about runtime behavior (which works).
My issue is purely about design-time schema detection.
Hi everyone,
I’m trying to display compiled Telerik reports (.Designer.cs) in a Photino.Blazor desktop application using the BlazorNative ReportViewer.
Here’s what I have so far:
public class Program
{
[STAThread]
public static void Main(string[] args)
{
var configuration = new ConfigurationBuilder()
.SetBasePath(AppContext.BaseDirectory)
.AddJsonFile("appsettings.json", optional: true, reloadOnChange: true)
.AddEnvironmentVariables()
.Build();
PhotinoBlazorAppBuilder appBuilder = PhotinoBlazorAppBuilder.CreateDefault(args);
ConfigureServices(appBuilder.Services, configuration);
appBuilder.RootComponents.Add<App>("app");
PhotinoBlazorApp app = appBuilder.Build();
app.MainWindow.SetSize(700, 460)
.SetLogVerbosity(0)
.SetDevToolsEnabled(SystemUtils.IsDevelopment)
.SetContextMenuEnabled(SystemUtils.IsDevelopment)
.SetIconFile(iconPath)
.SetTitle("MyReports");
AppDomain.CurrentDomain.UnhandledException += (sender, error) =>
{
app.MainWindow.ShowMessage("Fatal exception", error.ExceptionObject.ToString());
};
string myAllowedOrigins = "_myAllowedOrigins";
var host = Host.CreateDefaultBuilder()
.ConfigureServices(services =>
{
services.AddScoped<ReportServiceConfiguration, ReportServiceConfig>();
services.AddControllers();
services.AddCors(options =>
{
options.AddPolicy(name: myAllowedOrigins,
policy =>
{
policy.SetIsOriginAllowed(origin => origin.StartsWith("http://localhost"))
.AllowAnyHeader()
.AllowAnyMethod();
});
}
);
})
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.UseKestrel()
.UseUrls("http://localhost:5000")
.Configure(appBuilder =>
{
appBuilder.UseCors(myAllowedOrigins);
appBuilder.UseStaticFiles();
appBuilder.UseRouting();
appBuilder.UseEndpoints(endpoints =>
{
endpoints.MapControllers();
});
});
})
.Build();
host.Start();
app.Run();
}var reportInstance = Factories.ReportFactory.CreateReport(_selectedReport.ReportCode);
_reportSource = new InstanceReportSource { ReportDocument = reportInstance };
In my Razor page:
<ReportViewer ReportSource="@_reportSource"
ViewMode="@_viewMode"
ScaleMode="@_scaleMode"
Height="600px"
Width="100%" />Problem:
Questions:
This is my declaration in the .cshtml file:
@(Html.TelerikReporting().ReportViewer()
.Id("reportViewer1")
.ServiceUrl(Url.Content("~/api/reports"))
.ReportSource(new TypeReportSource() { TypeName = "ReportLibrary." + Model.FormReportsModel.ReportID.ToString() + ", ReportLibrary" })
.ViewMode(ViewMode.Interactive)
.ScaleMode(ScaleMode.Specific)
.Scale(1.0)
.PersistSession(false)
.PrintMode(PrintMode.AutoSelect)
.EnableAccessibility(true)
.ClientEvents(events => events.RenderingBegin("onRenderingBegin"))
.ClientEvents(events => events.RenderingEnd("onRenderingEnd"))
.ParameterEditors(
editors => editors
.CustomEditors(new CustomParameterEditor
{
MatchFunction = "customMatch",
CreateEditorFunction = "createCustomEditor"
})
)
)
It's been running fine for years without the "ParameterEditors" bit. I added that not because I want to really edit a parameter, only because I realized I could change the initial hint:
function customMatch(p1) {
if (p1.name === "AccountID") p1.Error = "Please choose one";
if (p1.name === "FiscalManyYears") p1.Error = "Please choose at least two";
return false;
}
function createCustomEditor(placeholder, options) {
// This is not needed, because the previous function never returns TRUE.
}which works great on the new report . . . but suddenly all of the other reports are failing, because the [Preview] button never enables, no matter what selections are clicked for the parameters. If I remove the ".ParameterEditors()" clause, the [Preview] button reverts to behaving as expected.
I would be happy if someone could point out a mistake I'm making.