Telerik Forums
Reporting Forum
3 answers
159 views

The first time I opened VS, I was able to see my custom business objects in the Configure Object Data Source dialog.  However, now I'm not able to see any of the classes in the project in the Available data source types tab.  I've re-installed several times and have made sure to build the project when changes are made and before running any of the wizards.  I've added the following simple class which also does not show up in the list:

 

 

[System.ComponentModel.

DataObject(true)]

 

 

 

public class Car

 

 

 

 

 

 

{

 

 

public string Make { get; set; }

 

 

 

public string Model { get; set; }

 

 

 

public List<Car> GetCars()

 

 

{

 

 

return new List<Car>();

 

 

}

 

}



Is there a known issue with this version of Telerik Reporting related to the ability to view custom business objects?  I'm using Telerik Reporting version 4.2.10.1221.
Nasko
Telerik team
 answered on 20 Sep 2013
3 answers
427 views
Hello Guys,
  I would like to access the group total value, to calculate percentages of the children elements of the group.
  In the screenshot, I would like to be able to retrieve the value 110 or 95, so I can calculate the percentages like 47/110, 24/110, 5/110, etc. for each of the rows.

  I have already tried accesing the column total using EXEC function, but it will give me the total (110 + 95), instead of the individual total.
  I tried also accesing to the specific cell textbox, but is "out of scope"

So, which would be the specific action to retrieve this value?

Thanks!
Nasko
Telerik team
 answered on 20 Sep 2013
1 answer
226 views
Hi, i have a problem if i want to set subreport parameters and bindings at the same time from master report. Subreport parameters i set from designer, selecting "ReportSource" and than "Edit parameters". Subreport bindings I also set from designer (Poperty path: ReportSource, Expression: = GetReportSource(Fields.NestedClass) ). GetReportSource is method in master report .cs file:

public static ReportSource GetReportSource(object dataObject)
{
      var report = new TextReport();
      report.DataSource = dataObject;
      return new InstanceReportSource { ReportDocument = report };
}

When i fire my report i get exception "An error has occurred while processing the report. Processing canceled. Check the InnerException for more information. Invalid value of report parameter 'Title'." Parameter has null value (if i set in subreport "Allow Nulls" for parameter) report is showing.

If I remove parameter, data in subreport is well binded, and report shows properly. Also if I remove bindings report is showing properly and parameter has value.
Nasko
Telerik team
 answered on 20 Sep 2013
16 answers
347 views
I am getting an " InnerException for exception". It works on my development machine perfectly but when I deploy it, it get this error. Its simple report with no database connection. I have all the correct dlls deployed and the web.config is correct. I have done a fiddler on it and gives me a internal 500 error. The silverlight has other wcf calls with out any issues. I do have wcf logging turn on but I cannot see any errors. Can someone help me ?
Alex
Top achievements
Rank 1
 answered on 20 Sep 2013
1 answer
153 views
I am setting an Expando object as the data source for an ObjectDataSource and binding my Report to this.

It does not seem to work.

Can I bind a Telerik Report to an ExpandoObject ?

Thanks,

Stef
Telerik team
 answered on 20 Sep 2013
2 answers
223 views
I have a single page report right now. I want to add a report parameter that I can pass in true/false. If the parameter is false, then nothing changes and the report prints as a single page. If the parameter is true, I want the report two print out two pages (the exact same thing from page 1, just twice). 

What do I need to do to get the page to print twice? I'm using the web reporting so setting the print copies to 2 is not an option for me and it has to be done at the report level. 
Dustin
Top achievements
Rank 1
 answered on 19 Sep 2013
2 answers
121 views
Hello,

I'm trying to localize fields from database to display different strings depending on the value. What I have is:
- example of the localized caption:   
Me.ColorNameTextBox.Value = My.Resources.MyProjectResources.ColorName
- or with data:   
Me.ColorValueTextBox.Value = "=IIf(Fields.Color =0, ""Blue"", IIf(Fields.Color=1,""Red"", ""Black""))"
What I would like to have is for ColorValueTextBox to have the localized values depending on the Fields.Color.
How can that be accomplished?

Jasna
Top achievements
Rank 1
 answered on 19 Sep 2013
5 answers
176 views
I'm new to Telerik Reporting and I think that it looks like a great product. However I am stumped as how to achieve something that to me sounds like something trivial.
I have an array of coordinates, a class with two properties; X and Y, and want to create a graph that displays these as a smooth line. I create the graph and bind to the array but I have no clue as how to specify that it should use the properties X and Y to place the line.

Right now I have this in my series and it doesn't work at all. I've also tried just =Fields.X
X =Fields.HeadGraph.Polynom.CalculatedPoints[i].X
Y =Fields.HeadGraph.Polynom.CalculatedPoints[i].Y


I feel that must be missing something trivial and any help that can get me forward is greatly appreciated.

BR,
Mats
Stef
Telerik team
 answered on 19 Sep 2013
2 answers
769 views
Hello,

I’m using Telerik Standalone Report Designer and wonder how to add a watermark, e.g. “Draft”, on each page of a report.
In the documentation there is only shown how to do it programatically but not how to do it with the standalone designer.
Hope you will help me.

Thank you
Wolfgang
Wolfgang
Top achievements
Rank 1
 answered on 18 Sep 2013
1 answer
86 views
Hi,

I'm new to Telerik Reporting (Q2 2013 SP1) in ASP.NET. I have only been playing with it for a week or so and I have read the documentation but i can't find the answers to some basic questions.

1. The biggest question is: When building a Report Item, Visual Studio shows a Report.cs and a Report.Designer.cs. The wizard puts everything in the Designer.cs (I would have thought some of it if not all to be in the Report.cs) so what goes in Report.cs? What type of things can I put there or does that Report.cs file stay as is? (sorry if stupid question).

2. I'm interested in creating my own UI (date pickers, checkboxes etc..) and then hitting a button to trigger a report in the ReportViewer. I saw this link that i can bind a datatable to the report which I would like to do. My stumbling block is, in order to build a report, I already have to have the ObjectDatSource predefined in order to design the report so what happens to that ObjectDataSource when I bind another datatable to the report when the existing ObjectDatSource in the report is pointing to a different function? Do i remove it from the Designer after the report is created?

Thanks!
Shane
David
Top achievements
Rank 1
Iron
Veteran
Iron
 answered on 17 Sep 2013
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?