Telerik Forums
Reporting Forum
1 answer
495 views
I have created a Report in the Designer which contains a Table with a fixed number of columns.  When I added the columns, it set the column heading to the default "string= same as the database field name".  In the application, we create a DataTable object(called DetailsTable) populating the column headings from a resource file and the table rows with the data.  The Report DataSource is set through the NeedDataSource event shown.

What I would like to know is what expression can I use to bring in the column headings from the DataTable object?
The objective is to remove all "hardcoded" strings from our reports.

private void table1_NeedDataSource_1(object sender, EventArgs e)
{
    var objectDataSource = new ObjectDataSource();
    objectDataSource.DataSource = ((BestFitStepDetailsReportView)this.DataSource).StepDetailsTable;
    (sender as Processing.Table).DataSource = objectDataSource;
}


Elian
Telerik team
 answered on 11 Nov 2011
1 answer
142 views
I created a report using an EntityDataSource.  Whenever I make a change to the model and rebuild the solution, my report previews no longer work.  To get them to work, I have to close Visual Studio and reopen the project.  Before restarting Visual Studio, here's the error message I get in the report preview:

The number of members in the conceptual type 'DataModelNS.ChangedEnityType'
does not match with the number of members on the object side type
'DataModelNS.ChangedEntityType'. Make sure the number of members are the
same.
Steve
Telerik team
 answered on 11 Nov 2011
1 answer
101 views
The demo Web viewer generates a javascript error in Chrome. Haven't tried IE yet. This error also occurs in my web app when I use the web forms viewer.

It doesn't seem to cause a problem showing the report, but it is still an error in the console none the less. The attached is a screen shot of the Chrome debugging console. This is the first pass through this function. There's a second pass through that succeeds with an actual valid URL to the .axd handler to, presumably, render the report in the iframe. However, why on the first pass are you trying to load the iframe from javascript:void(0);&RenderID= ?

Just to clarify, this is the demo c# solution, setting the WebDemo as the startup project.
Steve
Telerik team
 answered on 11 Nov 2011
1 answer
238 views
I can set an image URI if I use a picture box.

But the only option I seem to have when binding is to bind the actual image.

So, given that I need to pass the URI of an image to the report (this is for the logo to be used. It is stored as a physical file on the web server. There is no option for saving it in the DB) and that I want to use said image as a background for my Page Header, what do I do?

I know I could just use a picture box, but the image is fairly big and uses a lot of space. I can't overlap the image and the textboxes the data from my Page Header 'cos that's not allowed, so my only real option is to set the image as the background image in the style.

As always, any and all help, etc.

--
Stuart
Elian
Telerik team
 answered on 11 Nov 2011
2 answers
156 views
I was just reviewing Q3'11 Release Webinar Week schedule and couldn't help but notice the complete lack of any mention of Reporting.  I've also noticed that on the products page, the road-map is always empty.

What is Telerik's plans for reporting, what type of resources does it have internally to insure we as customer aren't sinking our time and effort into a dead end?   What is going to be in Q3 why no Q3 beta like the other products?

Marcus Kellermann
Top achievements
Rank 1
 answered on 11 Nov 2011
2 answers
632 views
Hello,

when i'm in a asp.net website i can loop through all the controls with

(foreach Control c in this.Controls)

Is this is also possible in telerik report to loop through all the controls?

kind regards,

Jonam
Steve
Telerik team
 answered on 11 Nov 2011
1 answer
175 views
I've used the conditional expression in the past (=RowNumber()%2) to highlight every other row in a table with no problems. With grouping, especially when some rows are filtered the highlighting is weird at best. Multiple consecutive rows that are the same color etc...

How can I get around this issue?
Stuart Hemming
Top achievements
Rank 2
 answered on 10 Nov 2011
2 answers
136 views
I'm creating a report to use as a service order print out for my companies software. For some of the reports the customers need to have custom fields and such designed by them. We built a custom designer, and using those fields, rebuilding custom portion into the report. I was printing out a page to use as a reference as I fix some alignment issues, and I notice none of the custom fields are printing. I currently have them set up as a sub report on a master report and seemed to work with the report viewer, but nothing else.

The first attachment  Page4ReportViewer.png is what the viewer is showing currently in my application.
The second attachment Page4WhenSavedAsPDF.png is what the pdf version and printed version will resemble.
Jacob
Top achievements
Rank 1
 answered on 10 Nov 2011
3 answers
103 views
Hello everybody,

I have a single report who displaying tables from different SqlDataSource and everything works fine.

I want to add a bar chart displaying data from an other SqlDataSource ( stored procedure ) in the same scope.

Here is my stored procedure return :

ID        Name

1        Hello
2        Hello
3        Bye
4        Hello
5        Bye    
6        Hi

I want my chart to display data like this :
- One bar by name (distinct)
- The value is the count of the repetition

Example :
bar "Hello" => value = 3
bar "Bye" => value = 2
bar "Hi" => value = 1

I am trying to solve my problem since few days, without the expected result

PS : i cannot modify the stored procedure

Thanks a lot, Kevin.
Elian
Telerik team
 answered on 10 Nov 2011
1 answer
239 views
I created a project using telerik reporting (trial version). I created a Class Library - the application name is QuotationReportClassLibrary - It has one report - Specific Quote.

I am able to preview it.

I use IronSpeed for my asp.net web application.

I copied QuotationReportClassLibrary.dll to the \bin directory of my IronSpeed project.

I also added the following lines to the IronSpeed web.config file -
<add assembly="Telerik.ReportViewer.WebForms, Version=5.1.11.928, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE"/>
        <add assembly="Telerik.Reporting, Version=5.1.11.928, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE"/>
        <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

I created an empty page in IronSpeed - and added the following -

<telerik:reportviewer id="ReportViewer1" report="QuotationReportClassLibrary.SpecificQuote, QuotationReportClassLibrary, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" runat="server" style="border:1px solid #ccc;" width="800px" height="1000px"/>

Also the following registration code -

<%@ Register assembly="Telerik.ReportViewer.WebForms, Version=5.1.11.928, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" namespace="Telerik.ReportViewer.WebForms" tagprefix="telerik" %>

I am able to run the report successfully.

However I want to specify the report in code behind - like 

Dim fs As New QuotationReportClassLibrary.SpecificQuote()

But I get a compile time error - the QuotationReportClassLibrary is not found.

What must I do to rectify my error?


Massimiliano Bassili
Top achievements
Rank 1
 answered on 10 Nov 2011
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?