Telerik Forums
Reporting Forum
1 answer
547 views

Hi Team,

I am using Visual studio 2017 for designing Class Library Report (.cs) in my project.

And wanted to create template for Header and Footer, So I can use that in multiple Reports, but i couldn't find any solution in visual studio.

But it looks there is some option in Standalone designer tool that I am not using.

Please guide.

 

Thank you!

Prashant

Silviya
Telerik team
 answered on 18 Apr 2019
3 answers
324 views
I've a list in the telerik report which has a data source assigned in it's NeedDataSource event. The data source is a datatable, which has multiple rows. A checkbox is placed inside list and need to set the visibility of checkbox based on the database filed. Urgent!! Please help.
Silviya
Telerik team
 answered on 18 Apr 2019
2 answers
1.3K+ views

Hello, I have a string representation of the date - "01.02.2016", and I need to cast it to datetime with specific pattern "dd.MM.yyyy" to prevent wrong casting in another culture settings (e.g. en-us which will interpret it by pattern "MM.dd.yyyy").

How can I do this?

Thanks a lot!

ANDREY
Top achievements
Rank 1
 answered on 17 Apr 2019
4 answers
437 views
I want to be able to save report parameters the user has chosen and save them. Later the user can select the saved report and I'll run the report and fill in the (many) parameters at run-time. I came across this post written almost 2 years ago:

http://www.telerik.com/community/forums/reporting/telerik-reporting/saving-report-criteria.aspx#1736100

Does the Telerik Report Viewer expose an event or object which would allow me to grab these values? The only workaround I could see was to grab the data from the drop downs themselves. Using jQuery I wrote this as a simple test on a button click:

    $("iframe[id$='ParametersArea']").contents().find("select").each(function (index) {
        alert(  $(this).val() + " | disabled: " +  $(this).is(':disabled') + " | id: " + this.id);
    });

The only other option is to build my own Parameter sections from scratch (20 reports with up to 8 parameters each, oh joy).

Please let me know if anything has changed in the past to years in this regard,

Thank you
Marcel
Top achievements
Rank 1
 answered on 17 Apr 2019
1 answer
736 views

My report pulls 6 months, on the first to the last day for each month, of data from the past using a data picker and will use all 6 for one of the graphs, but I also want to use only the last full month of data for all of the rest of the graphs so I need to filter the 6 months to get that data.  I am trying to filter only the data for the last month using the date from the parameter but for this I will need the date parts because I want from the first day of the month to the last day of the month.  Can someone please give me an idea how I can do this?

ie.

Date Picker chooses 3/5/2019 meaning getting data for all days in each month of Oct, Nov, Dec, Jan, Feb, Mar

One report uses all 6 months

All other reports use only data from March

Any help would be greatly appreciated.

Neli
Telerik team
 answered on 16 Apr 2019
1 answer
203 views

Hi

We're using dynamic column sorting in telerik report. But every time we click on the sort button the report calls the data source. Is there a way to avoid it. This happens when we render the report in different format(csv, pdf) too.

 

Regards,

Majar

Neli
Telerik team
 answered on 16 Apr 2019
3 answers
1.0K+ views

I have an Angular / Asp.Net Core web application. The report viewer component is working in the Angular application. Parameters are passed correctly. But when the report is loaded I get the error message in the viewer:

An error has occurred while processing Table 'crosstab1': Invalid key value.

The passed parameters values are displayed in textboxes so the report is loaded and rendered.

I guess it has something to do with the connection string that cannot be found.I created the report in the Report Designer application (so no class library/project which contains the reports) and the name of the connection string is "Reports" in the designer.

In the appsettings.json file I added an entry into the ConnectionStrings section with the name "Reports" (just as in the examples)

"ConnectionStrings": [
{"name": "Reports",     "connectionString": "Data Source=.;Initial Catalog=DatabaseName;Integrated Security=True",     "providerName": "System.Data.SqlClient"   }
]

 

I also created an app.config file with the connection strings

<?xml version="1.0" encoding="utf-8"?>
<configuration>
 
  <!-- To customize the asp.net core module uncomment and edit the following section.
  <!--
  <system.webServer>
    <handlers>
      <remove name="aspNetCore"/>
      <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified"/>
    </handlers>
    <aspNetCore processPath="%LAUNCHER_PATH%" arguments="%LAUNCHER_ARGS%" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" />
  </system.webServer>
  -->
 
  <connectionStrings>
    <add name="Reports"
        connectionString="Data Source=.;Initial Catalog=DatabaseName;Integrated Security=True"
        providerName="System.Data.SqlClient" />
  </connectionStrings>
 
</configuration>

 

It seems that the Report Engine cannot find the connection string. Or does the Report Engine use another name for finding the connection string?

Marcel
Top achievements
Rank 1
 answered on 16 Apr 2019
1 answer
289 views

Hello Telerik Team

This is my Response 
{
    "Response": null,
    "Response": null,
    "Response": {
        "Response": {
            "Response": [
                {
                    "Response": [
                        {
                            "Response": [
                                {
                                    "Response": [
                                        {
                                            "Response": 35,
                                            "Response": 2,
                                            "Response": 2,
                                            "Response": 31,
                                        }
                                    ],
                                    "Response": 5,
                                    "Response": null,
                                    "Response": "789",
                                },
                            ],
                            "Response": 0,
                            "Response": null,
                            "Response": "45",
                        },
                    ],
                    "Response": 9,
                    "Response": null,
                    "Response": "712",
                },
            ],
            "Response": "xyz",
            "Response": "XYZ",
            "Response": "XYZ",
            "Response": "12",
            "Response": "123",
        }
    }
}

Now i want  to show this response in this design (My Design: Report should Look Like this)

I tried to design report using table but it looks like this (Actual Report: Report Created Using Table)

Also Tried with Crosstab but it was not looking good

i show your Demo Product Catalog ( https://demos.telerik.com/reporting/product-catalog?&skinName=default ) but it is just showing result it is not showing how can i do this.
I want to show my data same as you show in your demo.

also help me to show Icon as my design have (image: Report should Look Like this)

Todor
Telerik team
 answered on 15 Apr 2019
1 answer
409 views

Hi,

I am generating report using Telerik Reporting v13.0 

But facing some issue with sorting Crosstab.

Please find attached screens, where I have grouped Crosstab by "City" and wanted Sorting by "Name" ASC but that is not working

Grouped by City - Philadelphia (that is working)

But under this Group all record should sort by name 

- CUP

- Globant

- Cognizant

Expected order should be Cognizant then CUP and then Globant , but that is not working

 

Thank you!

Prashant

 

Neli
Telerik team
 answered on 15 Apr 2019
19 answers
5.4K+ views
Hello,

I'm having trouble adding a new line to a textbox in a report. I'd like to have a textbox that displays up to 3 different fields on different lines. i"m setting the string "line 1 \r\n line 2 \r\n line 3" i tried a few different combinations. I would like to avoid putting it in the edit expressions if possible. I got it to work for the html side easy enough using <br> but the winform side is the one i'm having troubles with. I'm using Telerik Reporting Q1 2009 release.

Thanks much,
~Boots
Rod
Top achievements
Rank 1
 answered on 12 Apr 2019
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?