Telerik Forums
Reporting Forum
2 answers
295 views
Hi Telerik,

Good day.

api/reports/clients connection timeout telerik report"


Sometimes we have this errors that the Telerik Reporting API wasn't able to connect successfully or didn't achieve that 200 OK status. (Or sometimes its status is pending and won't proceed)
Is there a way that we can somehow "alert" the error message using JavaScript to the user so that we will be able to easily determine the cause (without pressing F12 or inspect element) on an instance that the menu tabs on top of the report (the reporting viewer template) appeared while the report in the middle doesn't display.


Thanks in advance.
Efren
Top achievements
Rank 1
 answered on 02 Jul 2015
3 answers
172 views

I am having issues passing a parameter from my master report based on a stored procedure to my detail report based upon another stored procedure. I have narrowed down the problem to the following situation:

If the master report is based upon a stored procedure and I try to pass a parameter as a field from that procedure, I get a "object reference not set to an instance of an object" error in preview.

I have tested this with a variety of scenarios and this seems to be the only one causing the issue. I am setting the parameter for the subreport in the Designer as seen in the SetParameter.png attached.

It works if the master report is set to an SQL statement (not easily accommodated) or if I hard code the parameter to a value. It is only the above scenario that I cannot get to work.

Suggestions?

ROD>

Stef
Telerik team
 answered on 01 Jul 2015
9 answers
421 views
Hello,

         I am using telerik Reporting Q1 2014 Latest Version In this version I am not able to print the report .. In the Report firstly its downloaded as PDF and not to print directly . 
         Is there any solution to overcome this problem
Stef
Telerik team
 answered on 30 Jun 2015
1 answer
230 views

Hi, there is some way to put the number of pages in a textbox (like the =PageCount) outside the page Header or Footer, even programmatically using C#, I tried by generate a temporary file of the report, counting the page numbers send that value and generate the report again but that solution is not very practice.

Can Some one help me please.

Nasko
Telerik team
 answered on 30 Jun 2015
1 answer
115 views

I am trying to figure out how to bind the ObjectDataSource in Xaml.  I am using the MVVM pattern and do not want to use code behind.  I cannot seam to find any documentation or examples that show this.  Everything I have found shows this being done in code behind.  I think it really is just a matter of getting the proper syntax.  If anyone has done this could you show me how this is done.  

 

Thank You

Stef
Telerik team
 answered on 30 Jun 2015
4 answers
67 views

Sorry for my limited English first, I have a problem with formatting text of htmltextbox:

 Is there any way to display a content like:

-  aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

Instead of:

-  aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

And is there anyway to remove padding of <ul> and <li>?

 

Stef
Telerik team
 answered on 30 Jun 2015
3 answers
175 views

Hello,

From my understanding I can pass a function into the ready option and it will run after the report viewer is initialized, so great - I though, because I would like for my reports to ignore the cache on a specific report.  So I figured I could do something to the effect of:

    $("#reportViewer1")
        .telerik_ReportViewer({
            serviceUrl: "/REST/api/reports/",
            templateUrl: '@Url.Content("~/ReportViewer/templates/telerikReportViewerTemplate-9.0.15.225.html")',
            reportSource: {
                report: "TravelRequestHeader.trdx",
                parameters: {
                    TravelRequestID: '@ViewBag.TravelRequestID'
                }
            },
            viewMode: telerikReportViewer.ViewModes.INTERACTIVE,
            ready: function () {
                //doesn't work right...
                this.refreshReport(true);
            }
        });

 

However the report viewer keeps rendering the report from cache, but if I do this explicitly within my dev console:

$('#reportViewer1').data('telerik_ReportViewer').refreshReport(true);

Then it will refresh the report and ignore the cache as I intended.  I do not see another option to set when initializing the viewer to tell to ignore the cache, am I missing something here?

 

Thanks,

Mike

Stef
Telerik team
 answered on 30 Jun 2015
7 answers
677 views

I am evaluating the reporting functionality and I really need some help on binding a custom dll.  

This is what I have done so far.

1) Created a .net dll with the following code.  The dll is in the same folder as the trdx file

namespace ClassLibrary1
{
    [System.ComponentModel.DataObject()]
    public class Person
    {
        public string Name { get; set; }
    }
}

I added the data source to the trdx file as follows

<DataSources>
    <ObjectDataSource Name="ClassLibrary1" />
  </DataSources>

 

When I open the project in the Data Explorer I only ClassLibrary1.  I expected to see the object Person and under that the Name property.  I opened the Configure Object Data Source window but both tabs are blank.  

I have spent hours reading the forum and the pdf tutorial and just cannot figure this out. I must be missing some simple point on this. Any help would be appreciated.

Better yet does anyone has a simple example they would like to share? 

 

BTW: 

I also tried making a dll with a DataSet with some tables using the designer in visual studio but no luck with this either.

 

 

 

Stef
Telerik team
 answered on 30 Jun 2015
2 answers
236 views

Hi

I am using Q2 2014 SP1 of Telerik Reporting.  My report currently contains a single Graph in the detail section.  It has a barSeries and two lineSeries.

However, there are times when I only want to show one of the two line series.

I'm binding the graph to a strongly typed list of objects and the object has a property on it that will let me determine if I want to hide the line series.

 

My specific example is this:

I am already binding my report's DataSource property to ReportItem.DataObject.BowlerValues  (this is my strongly typed list).

My graph might need to show Planned (bar), Forecast (line) and Actual (line) values.

A BowlerValue object has a property on it called "ShowForecast".

If ShowForecast is false, I will want to hide the Forecast Line Series.

 

How can I do this?  Can I use Bindings in any way?

Thanks,
Brent

Brent Hetland
Top achievements
Rank 1
 answered on 29 Jun 2015
3 answers
304 views
Hi. I have two reports that have the same page header, data sources, and etc., but different page footer. I need them to be in a single one report, because I need it to print them together.

Here's the thing. In my view I was using:

var typeReportSource = new TypeReportSource() { TypeName = "../Reports/Report1.trdx" };
typeReportSource.Parameters.Add("IdYear", (object)(Convert.ToInt32(ViewBag.IdYear)));

@(Html.TelerikReporting().ReportViewer()
       .Id("reportViewer1")
       .ServiceUrl("../../api/reports")
       .TemplateUrl("/ReportViewer/templates/telerikReportViewerTemplate.html")
       .ReportSource(typeReportSource)
       .ViewMode(ViewModes.INTERACTIVE)
       .ScaleMode(ScaleModes.SPECIFIC)
       .Scale(1.0)
       .PersistSession(false)
)

And I had the same for Report2. But now I need to have them both in a single Report, and I've read that I can use ReportBook.

The examples I found show code like this:
 reportBook.Reports.Add(new Report1());
 reportBook.Reports.Add(new Report2());


But I am working with the .trdx files, not with the Visual Studio Designer. So I can't figure out how to do it. I found some reads about Activator.CreateInstance

I need some guidance. I am kind of stucked here.

Thanks in advance.
Stef
Telerik team
 answered on 29 Jun 2015
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?