Telerik Forums
Reporting Forum
1 answer
208 views
How to re add labels group header section after deleting it from a report.
Nasko
Telerik team
 answered on 28 Aug 2015
1 answer
87 views

I posted this in the sticky above about updating but since those are ancient threads, I'm not sure they were noticed, so I apologize for the repost, but I need some help on this. 

 

I'm updating to the Q2 2015 reporting tools in VS2015, and I'm having an issue with the many guides that are identical to this one:
http://www.telerik.com/support/kb/reporting/details/the-wpf-silverlight-report-viewer-is-blank-after-upgrading-from-version-prior-to-q1-2014-to-q1-2014-or-later

My problem is that when I add the following: 
<ResourceDictionary Source="/Telerik.Windows.Themes.Expression_Dark;component/Themes/Telerik.ReportViewer.Wpf.xaml"/>
it squiggly underlines Telerik.ReportViewer.Wpf.xaml and tells me "(my path)\Assemblies\Telerik.Windows.Themes.Expression_Dark.dll\Themes\Telerik.ReportViewer.Wpf.xaml" path not found
 I have 7 other identical lines, pointing to other xaml files and they all seem to be working fine.
I've updated all relevant references in my project to be sure I don't have lingering 2013 versions about, and all is well on that front.
It's just this one file that's not behaving.

To be more specific:
The guide post I linked above says "2. Add the respective xaml files for the desired theme. ..."
How/where are those xaml files to be added? We've been using this theme for over 2 years, but we don't have any of those xaml files anywhere in our solution currently.

Any suggestions?

Thanks!

Stef
Telerik team
 answered on 28 Aug 2015
2 answers
431 views
Hello,
My requirement is similar to what is displayed in attachment: “Page mockup.jpg”. Here I have one main report and a sub report in detail section which displays the data in table. Once the table data ends in Sub report, I need to show some text data with total page count in one text control and I’m using Report footer section of Sub report to show those details. There is no page break I can embed for this text that appears once table details end.
Also, the Page count details need to appear above total details of Table. Repositioning of data is not acceptable and this is the only way a report design is required. Would request to suggest alternate and solution for both the problems (Page count row positioning in a table and Total Page count value in text box as expected). Would appreciate if you can provide me some sample to depict how these can be implemented
neha
Top achievements
Rank 1
 answered on 28 Aug 2015
1 answer
67 views

Hey, quick question. 

 

I was wondering if you guys have the Silverlight Telerik Reporting in an online Nuget repository. I found some other Telerik packages but not these specific ones.

 

Right now we host the libraries we downloaded in our own Nuget package source but I would like to use the official one. 

Nasko
Telerik team
 answered on 28 Aug 2015
2 answers
4.1K+ views
need help getting new line in textbox

I am using the 2013 asp.net mvc report control and am having trouble getting the textbox to show up.

I have this at the moment.
            this.someDataTextBox.Value = "=Fields.Name\r\nFields.Company";

This is based my understanding from the documentation saying to just add a ctrl-enter in the textbox.
I tried adding "\n\r" and several other things based on the posts here.
Like this.
            this.someDataTextBox.Value = "=Fields.Name + \r\n + Fields.Company";

What am I missing?
Javier
Top achievements
Rank 1
 answered on 27 Aug 2015
6 answers
373 views
Hi,

We are designed the report using Report Viewer and able configure the report file using Report Viewer of Kendo.UI for ASP.Net MVC application.

Since in Report Designer, the report controls are bind with Data Source object with results. But as per my requirement, we need to bind the data at the run time based on other filter options. I tried to look into the Demo and Documentation of the reporting for this but could not able to get it.

Here is my reportViewer code used to display the report:

    @(Html.TelerikReporting().ReportViewer()
       .Id("reportViewer1")
       .ServiceUrl("/api/reports/")
       .TemplateUrl("/ReportViewer/templates/telerikReportViewerTemplate.html")
               .ReportSource(new UriReportSource() { Uri = "TransactionSummary.trdx" })
       .ViewMode(ViewModes.INTERACTIVE)
       .ScaleMode(ScaleModes.SPECIFIC)
       .Scale(1.0)
       .PersistSession(false)
    )


To the transaction summary report I need to pass the data at the run time.

Can some one please guide us on this as early as possible?

Regards!
Stef
Telerik team
 answered on 27 Aug 2015
1 answer
93 views

I can export reports in IE just fine, but when I try to export in Chrome or Fire Fox I get an error. I have found that I only get the error with reports that use a SqlDataSource​ because when I created a test report that did not get external data it exported ok; but when I added the SqlDataSource and had it pull from SQL Server then it would no longer export. It always displays just fine though... it just won't export unless I (or my clients) use IE.

 

I've also posted this on Stack Overflow: http://stackoverflow.com/questions/31250011/telerik-reporting-cant-export-in-chrome-when-using-sqldatasource.

It has 14 votes so apparently someone else is having this problem... but no answers :(

Nasko
Telerik team
 answered on 26 Aug 2015
7 answers
147 views

I have a Chart on ​a ASP.NET Web Forms report. The customer wants to see datetimes displayed in local time with​ no offset. However, we need the offset to prevent weird chart behaviors during Daylight Savings Time.

One solution would be to have the Value be ​a UTC DateTime field and the ​Text be a local DateTime field. Can I do this with Telerik charts? I do not see a way to set the Value and Text of each data point in the LineSeries.

Nasko
Telerik team
 answered on 25 Aug 2015
5 answers
671 views

I am trying to show a report in HTML5. I have setup the Web API and I am able to successfully call the API with the xxx/formats and xxx/clients URL. However the next calls, which are clients/{clientid}/parameters and clients/{clientid}/instances are failing with a 404 and no additional information in Fiddler (see attached).

I included the Web API into my existing Web API, so the format of the URL is different than what is documented in the tutorials, but that shouldn't matter.

I have also seen that the 404 may indicate that the report file cannot be found. I have the following setup:

In the controller, I have this statement

Dim resolver = New ReportFileResolver(HttpContext.Current.Server.MapPath("~/Reports")).AddFallbackResolver(New ReportTypeResolver())

and I have in the project location a Reports sub folder which contains the file Report1.trdx

In the Web Application, I build the html that has to be added to the page as following. The most noticeable is the ReportSource which is set to Report1 (I have also tried Report1.trdx with the same result)

Can you help me to set this up?

"<div id=\"reportViewer1\" class=\"k-widget\"> " +
                "    loading... " +
                "</div> " +
                "<script type=\"text/javascript\"> " +
                "        $(\"#reportViewer1\") " +
                "            .telerik_ReportViewer({ " +
                "                serviceUrl: \"/api/" +
                                                "token/" + Credentials.getToken(this.mainViewModel.connection) + "/" +
                                                this.mainViewModel.connection + "/" +
                                                "TelerikReports/\", " +
                "                templateUrl: '/ReportViewer/templates/telerikReportViewerTemplate-9.1.15.731.html',  " +
                "                reportSource: {  " +
                "                    report: \"Report1\" " +
                "                } " +
                "            }); " +
                "</script> ";

Stef
Telerik team
 answered on 25 Aug 2015
1 answer
138 views
Hi,

I'm trying to use a custom function in my expression to decide what field should be displayed in the textbox, what grouping should be done, what formatting style should be applied, visibility and how the drilldown functions work.

So far I got here (example of displaying text)
C#
public static string GroupDisplay(int GroupNumber, Telerik.Reporting.ReportParameterCollection parameters, decimal? RecordCenterKey, decimal? RecordUserKey, DateTime? BillDT_DateTime, decimal BillDT) {
            switch (GetGroupingForGroupNumber(GroupNumber)) {
                case ReportGrouping.None:
                    return string.Empty;
                case ReportGrouping.Centers:
                    return CenterName(GetCenterKeyFromParameters(parameters), RecordCenterKey, GetViewSubCentersFromParameters(parameters));
                case ReportGrouping.Users:
                    return CreateUserName(RecordUserKey);
                case ReportGrouping.Date:
                    return CheckDate(GroupDate(BillDT_DateTime, BillDT));
                default:
                    return string.Empty;
            }
        }

My expression:
= GroupDisplay(1, Parameters, Fields.TxTicket_CenterKey, Fields.TxTicket_UserKey_BilledByKey, NULL, Fields.TxTicket_BillDT)

The reason why I am using the Telerik.Reporting.ReportParameterCollection instead of using every parameter separately is because there are 7 default parameters and many optional depending on the report, I want to use the same expression in all 40 so if something changes I can change the expressions in code for all of them in no time.

Am I using a bad approach to solve this or is it something that is not possible in the current release of Telerik Reporting

Kind regards,
Frank
Sven J
Top achievements
Rank 2
 answered on 25 Aug 2015
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?