Good day!
Trying Angular reporting with Asp.net core 3.1. Build in our application to try how it would work in our envirnoment. When I'm running application out of docker it all works fine. But as far i'm trying to run in in docker-compose with redis for cach it allways failed on registering new Angular client () it returns 400 response. Due to known isues it might be wrong connection to redis, but I have added random number input in redis and connection works fine.
CustomReportServiceConfiguration:
public class CustomReportServiceConfiguration : ReportServiceConfiguration
{
/// <
summary
>
/// Инициализирует новый экземпляр класса <
see
cref
=
"CustomReportServiceConfiguration"
/>.
/// </
summary
>
public CustomReportServiceConfiguration(
IReportSourceResolver reportSourceResolver,
ConnectionMultiplexer connection) : base()
{
var redisStorage = new RedisStorage(connection);
var guid = Guid.NewGuid();
redisStorage.SetString(DateTime.Now.ToString("dd-MM-yyyy HH:mm ") + "testKey-" + guid, "testValue-" + guid);
HostAppId = "ArmCod";
Storage = redisStorage;
ReportSourceResolver = reportSourceResolver;
}
}
Configuration:
services.AddScoped<
IRegionReporting
, RegionReportingService>(); //-Controller for reporting service
services.TryAddScoped<
IReportSourceResolver
>(sp =>
new UriReportSourceResolver(
Path.Combine(sp.GetService<
IWebHostEnvironment
>().ContentRootPath, "Reports")));
services.AddScoped<
ConnectionMultiplexer
>(x=> ConnectionMultiplexer.Connect("redis:6379"));
services.AddScoped<
IReportServiceConfiguration
, CustomReportServiceConfiguration>();
Compose file:
version: '3'
services:
web:
depends_on:
- "redis"
build:
context: .
dockerfile: ./src/Dpc/AdministrationPortal/Stf.WebApp/Dockerfile
ports:
- "9901:80"
links:
- "redis"
redis:
image: redis:latest
ports:
- 6379:6379
volumes:
- ./redis.conf:/redis.conf
command: [ "redis-server", "/redis.conf" ]
So when it run from Visual Studio in localhost envirnoment all fine, when redis work in docker and app in localhost all work fine. But when both (app and redis) runs in docker, reporting always failed with 400 error upon trying to register new client with post request at api/RegionReporting/clients in same time '/formats' works fine.
Hi there,
I have just taken over an old .NET website which uses Telerik. Unfortunately, the person who developed it is long gone and now I don't have the assemblies.
Any chance someone could point me to the location of this assembly, please?
Assembly="Telerik.ReportViewer.WebForms, Version=3.2.9.1211
Thanks!
Hi
I've got an issue with Conditional Formatting. I get "The expression contains object 'Fields' that is not defined in the current context".
I've seen some errors on this forum with named fields not being defined, due to a a problem with the Data Source. But I really can't understand what's going on here. Obviously 'Fields' is defined as my TextBoxes are being populated, this error only shows up with Conditional Formatting.
Please find the image attached for a better understanding.
Could someone help me out?
Thanks
We are investigating Telerik Reports for WPF.
Our report needs to display 2 fields.
1 field contains content that is serialized from the Telerik RtfDataProvider in a RadRichTextBox in WPF.
1 field contains content that is serialized from the Telerik XamlDataProvider in a RadRichTextBox in WPF.
How do we display the content from both Telerik data providers in a report field?
As an alternative - we can export each field as a PDF. So how do we display a field containing PDF content in the report?
Hi, I have a problem creating a new page. I have a table where the raw materials for the production operation are listed, production operations have their number. I would like to write a condition in the designer that a new page starts when the operation number changes. As I read, it is not possible to read the previous value for comparison. Is there any way to do this? Thanks
Hi,
We have updated our telerik reporting and web report designer to R2.P1.2020 (14.1.20.618).
I am using the report that is attached to this post.(actually it didn't allowed me to upload .trdx file) It has 2 web service data sources:
1. webServiceDataSource1URL - For the Service URL we are using the inline variable "@url" and for Value and design time value we are using the "https://services.odata.org/TripPinRESTierService/People"
2. webServiceDataSource2NoURL - For the service URL we are directly using the "https://services.odata.org/TripPinRESTierService/People"
The scenario #1 is not working and the error is showing in a web designer: "An error occurred while loading the data schema for 'webServiceDataSource1URL': unexpected token | in JSON at position 0". For more details check the attached screenshot. As well you can see that the fields for #2 is loaded and for #1 is not loaded. This report works fine in a standalone report designer.
We are moving toward using the web designer and #1 is the case how how we use the web datasources.
It would be great to have this fixed in a next release.
Thanks,
Have a Web Service Data Source in the Report Designer. Want to set the Service Url field dynamically based on report parameter passed in. Is this possible? That field doesn't have an Expression option. It's just a text field...
Hi,
I would print a list of image, these images are certified mark and I have to show theme in horizontal orientation.
But these pictures could be seen all, or only some. But those that remain visible must all be near and no spaces.
I tried to use the crosstable, but it seems that is not working.
How can I do?
We have a report with a List on it, bound to a collection of records, and grouped by a date field with a Row Group. There is a header row for each group of records, which is a TextBox with the date in it. When rendering to a PDF, everything works fine but the group header row textbox extends to the second page, even though it is well within the bounds of the page. Any suggestions?