Telerik Forums
Reporting Forum
3 answers
242 views

Hello

 

I am trying to integrate reports in my Winform application but visible I am missing a step:

My application is a Winform application using an EntityFramework to manage the data (stored in y SQLServer database)

I have created a form with a Reportviewer in my project

In visual studio I have created a report (named rptStartList.vb) that has the datasource : rptEntityDataSource [Telerik.Reporting.EntityDataSource]
and the entityDatasource as a proper connectionstring, context ad contextdatamember. The report displays correctly the underlying data in preview

Now I need to "associate" this report to the report Viewer. I have read everything I found, but have failed to understand, in particular I do not understand how to

"Add reference to the class library that contains your reports in the windows form application." found in : https://docs.telerik.com/reporting/winforms-report-viewer-manual-setup

and how to create this class library and what is in it

Can you guide me on how to procee, clearly I am missing a, probably simple, step ....

Thanks in advance

P.S. should you have a complete sample application with the same environment I would appreciate greatly

Neli
Telerik team
 answered on 16 Sep 2020
2 answers
1.0K+ views
Hi,

I have a table in report header which displays summary data.
I want the table not to be disabled when there is no summary data.
I have created a binding on table with [Property path = Visible] and [Expression =IIF(Count(1)>0,True,False)].
 It gives me the below error when i run the report.
An error has occurred while processing Table 'table1': Aggregate node 'Count(Const(1))' not found. 

I think the expression value is incorrect. What expression will return me the rowcount. so that if the rowcount = 0 then i can make visible property = false.
Your help will be appreciated.

Thanks.
Srinath. 
Richard
Top achievements
Rank 1
 answered on 15 Sep 2020
8 answers
788 views
Hi! Is there a sample that adds Export to XML from the report export menu? Thanks.
Eric R | Senior Technical Support Engineer
Telerik team
 answered on 15 Sep 2020
1 answer
76 views

Hello everyone,

I´m using the html box to list the general terms and condtions of a customer.

While doing so i noticed that the size of the number of the list item does not match the size of the text that follows.(see pic.)

Is there a possibility to set the size of the number of the list item to same es the following text?

(btw. if you use the size xx-small on a list item the designer crashes)

 

 

Neli
Telerik team
 answered on 15 Sep 2020
1 answer
157 views
Fontfallback does not work, see attachments. If I select the textbox, something better. Is there any solution?
Neli
Telerik team
 answered on 15 Sep 2020
32 answers
2.1K+ views
Does anyone know how to add a group page count and group page number to a report?  I know how to get the global page count, but I need a pageCount and PageNumber for each group
Neli
Telerik team
 answered on 15 Sep 2020
1 answer
268 views
Is it possible to insert RTF text with floating images, tables, OLE into a textbox so that it keeps the format?
Yana
Telerik team
 answered on 15 Sep 2020
2 answers
126 views

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.

 

Denis
Top achievements
Rank 1
 answered on 11 Sep 2020
1 answer
916 views

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!

Yana
Telerik team
 answered on 11 Sep 2020
5 answers
4.8K+ views

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

Mark
Top achievements
Rank 1
 answered on 10 Sep 2020
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?