Telerik Forums
Reporting Forum
3 answers
68 views
Hi, 

In one of my report I receive a custom business Object in the constructor, containing all needed data for the report.

I basically set the DataSource to the object I receive in the constructor.

For simple textbox it works quite good, but in my report I'm using a table, not because I receive a list of data that I want to display in a tabular form, but because I've a lot of "Label-> text" to display, two of them per line, and sometimes one line will be to large to stay on one line, so I want that other fields take the same offset.

So here is what I got now: http://screencast.com/t/r7dLQZlTB

All fields which aren't in the table are working good, but I can't make any of the field in the table working.

I tried to set the DataSource of the the table to Fields(through binding), but It doesn't works.

What is my best shot to do this?
Steve
Telerik team
 answered on 10 Apr 2012
0 answers
60 views
I want to make report like this :

Fields AAAA
ModifiedBy        Value
ecaron                1
ecaron                5
Fields BBBB
ModifiedBy        Value
ecaron                A
sparadis             B

My Datasource contain : FieldName, ModifiedBy, Value

How I can make this. I want to create report in designer not dynamically

Thanks
ericc34
Top achievements
Rank 1
 asked on 10 Apr 2012
1 answer
125 views
Hi,

I have posted this issue yesterday as well. But has been removed from the forum. I am using date parameters with a report and cannot post the selected value back to the report for filtering. I have tried several ways.

Case 1:
I allow null values and set a default value to the parameter in the constructor. When I select a value from the date picker and click the preview button, the default value is passed and not the one that I selected.

Case 2:
I allow null values but do not supply a default value. I can select a value from the date picker but the preview button is not enabled.

Please be kind enough to supply a solution.

Regards,
Priyan
Steve
Telerik team
 answered on 10 Apr 2012
4 answers
242 views
This should be very simple but I can't figure out how to do it.  I have spent hours looking for a solution and trying different options.

I have a sql datasource with data as:

Period     |  Avg_Total
1/1/2011  |  $1000
2/1/2011  |  $1500
3/1/2011 |  $2000
...
...
12/1/2011 | $ 1200

I set my Chart's properties as:
- PlotArea.XAxis.AxisLabel.DataLabelsColumn = Period
- Series collection with DataYColumn = Avg_Total

I keep getting the error message.  Unable to cast object of type 'System.DataTime' to type 'System.String'.  All I want is a line chart with X-Axis with date value and Y-Axis for the avg_total.  I even upgraded to the latest version, Telerik Q1 2012, and is still getting the same issue. 

Help??
Hadib Ahmabi
Top achievements
Rank 1
 answered on 09 Apr 2012
1 answer
216 views
I just got through my first major experience with Telerik reports, and I hope this can prove to be some constructive criticism.  While the API and the documentation & forum were very good, I was trying to do something very specific that I simply had the most difficult time completing.  I was trying to use a table (as a sub-report) and dynamically remove *some* header rows while keeping others depending on the number of rows returned by the underlying stored procedure.  I really, really, really, really wish there was an easy way to programmatically get at the number of rows returned in a Telerik SqlDataSource object.  I also wish it was made more clear that the DataObject property referred to the *parent*'s data source.  

Also, it seems that there are some unknown (unknowable?) rules about what table cells can and cannot be merged - something I find completely bizarre.  I sort of hope that in the future there is some better documentation that clearly explains how rows can be removed from a table.  Also, I think that this functionality relied on having the table set up absolutely perfectly in the designer screen.  Is it possible that a checklist could be set up of items to look for to insure that my table is set up correctly to allow me to remove rows?  I greatly appreciate that you allow options to be set at runtime via the event handlers like Table_ItemDataBound, but man... finding simple, reliable answers to row counts, and turning off/making invisible/removing table rows was very difficult to come by.   
Steve
Telerik team
 answered on 09 Apr 2012
1 answer
292 views
We have nested tables. Table B is in Row 14 of Table A. When the Table B has no data we would like to not show it and this we did by setting its visible to false. But the white space created by this(row14) is showing up in the report.
How to remove row14 when it is not applicable?
Elian
Telerik team
 answered on 09 Apr 2012
1 answer
339 views
I have a report with header and multiple sub sections in details section.
For each subsection we have placed table and assigned corresponding datasource.
In header i have a textbox which contains patient related data.
Eg:textbox1 -->Expression--> [=Fields.NameField]


Now i need to display a caluculate field in table1 column based on the value of the textbox in header section.

eg:
Table1
----------------
textbox2-->Expression-> =FormatName() (UserDefined function)

In code behind file .cs

public static string FormatName()
{
return textbox1.Value+ "Busineess Logic";
}
But i am not able to access textbox1 here in this method as the method is declared as static.

How to achieve this in telerik ???
Elian
Telerik team
 answered on 09 Apr 2012
0 answers
87 views
hi
for reporting
i want to change numeric format
for example change 123.65 to  123/65
how can i do this?
tnx.

i
Omid
Top achievements
Rank 1
 asked on 09 Apr 2012
1 answer
318 views
When I try and preview my report I get an error as soon as I reference my object data source.  ...

An error has occurred while processing Report 'ShortDetailReport': An error occurred while invoking data retrieval method. Try restarting VisualStudio. ------------- InnerException ------------- Exception has been thrown by the target of an invocation. ------------- InnerException ------------- The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider, or not valid.

So, I thought I would try and debug it.  I created a "report viewer to point to my report.  When I go to my report view page I get this error ...

error CS0012: The type 'Telerik.Reporting.IReportDocument' is defined in an assembly that is not referenced. You must add a reference to assembly 'Telerik.Reporting, Version=6.0.12.302, Culture=neutral, PublicKeyToken=a9d7983dfcc261be'.
c:\Windows\assembly\GAC_MSIL\Telerik.ReportViewer.WebForms\6.0.12.302__a9d7983dfcc261be\Telerik.ReportViewer.WebForms.dll: (Location of symbol related to previous error)
c:\....\ShortDetailReportViewer.aspx(8,13): error CS0012: The type 'Telerik.Reporting.Report' is defined in an assembly that is not referenced. You must add a reference to assembly 'Telerik.Reporting, Version=6.0.12.302, Culture=neutral, PublicKeyToken=a9d7983dfcc261be'.
c:\Users\Brisco\AppData\Local\Temp\Temporary ASP.NET Files\root\62b29810\64a087af\assembly\dl3\40a66d36\c6893234_be14cd01\...Web.DLL: (Location of symbol related to previous error)
c:\....PHRED.Web\WebConsumer\ShortDetailReportViewer.aspx(8,30): error CS0029: Cannot implicitly convert type ...Web.App_Reports.ShortDetailReport' to 'Telerik.Reporting.IReportDocument'


The correct reference is there, why is it not finding it? So far this has been a horrible experience with the reporting tool. I have been trying for three days now to get this stupid report working. I have not been able to get past just trying to bind to me datasource.


Steve
Telerik team
 answered on 09 Apr 2012
1 answer
163 views
I have a bit of experience with Telerik Reports and using Charts. But I have only used one Chart. I was wondering if it is possible to do something like shown in the attachment? Any help provided would be greatly appreciated. Thanks.

Hadib Ahmabi
Top achievements
Rank 1
 answered on 09 Apr 2012
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?