Telerik Forums
Reporting Forum
2 answers
101 views
This is my first time to try out Telerik Report.

I created a Telerik MVC 3 Web Application project in VS 2010. Dropped Telerik Report control onto the About page content area. added the http handler to the web.config file. When I hit the about page, I got this error.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).

Is this supposed to work?

thanks,

content area code:

<asp:Content ID="aboutContent" ContentPlaceHolderID="MainContent" runat="server">
    <h2>About</h2>
    <p>
        Put content here.
<telerik:ReportViewer ID="ReportViewer1" runat="server">
</telerik:ReportViewer>
   </p>
</asp:Content>
Vassil Petev
Telerik team
 answered on 26 Mar 2013
1 answer
225 views
Hello-

I am using Telerik Reporting version Q1 2013 build 7.0.13.220 with the Silverlight viewer. I have implemented the IReportResolver interface to be able to pass custom parameters to reporting service. The primary reason for this is to support custom trdx reports and I need to know what report to create so I cannot pass this information to my custom report class. In the past I was able to do this with the report parameters but this was changed to be initialized after the report is created. So my solution was to use the custom IReportResolver which works great when viewing the report, but when I try to print the report, the path to the report appears to be falling back to the full class and assembly name, instead of my custom report path. Is there any way to get the printing and saving methods from the Silverlight control to pass the custom report path and not the fully qualified assembly/class path? I have verified that the custom report path is set correctly in the Report parameter of the ReportViewer control.

Thanks-
David Tosi
Peter
Telerik team
 answered on 26 Mar 2013
1 answer
759 views
Hi there,

I wanna add column header for each group.
For e.g.

           col1   col2  col3
grp1    
            1      1       1
            2      2       2
            3      3       3

            col1   col2  col3
grp2   
            1      1       1
            2      2       2
            3      3       3

Is this possible? If it yes, then how?

Thanks in Advance,
Mangesh
Milen | Product Manager @DX
Telerik team
 answered on 26 Mar 2013
1 answer
165 views
I am working with the new chart wizard. I have created a Column chart and I am trying to change the color of the individual bars. I have done this before my either going to the design change colors or to the appearance color palette. However today the bars will only change the first color in the selection. Meaning if I choose from the change colors options which are(red,blue, green, yellow, pink). It will change all the colors to red instead of rotating the colors. Can you please give a little insight.


Thanks for your time.
Peter
Telerik team
 answered on 25 Mar 2013
1 answer
624 views
Hi,
How to add RowHeaders for tables(not in crosstab) in telerik reporting?. I wanto raepeat the first column in every report pages.


Thanks & Regards
Anzar.M


Stef
Telerik team
 answered on 25 Mar 2013
1 answer
122 views
Hi,
I have telerik report with 25 columns and 10 rows. All of the columns are not fit to on page. The first column is the main clumn. so I want to display the first column in  every pages of the report. How to achieve this?. Like your Product Sales Per Period demo printing preview , in this the first column is repeated in every pages. I need like this.



Thanks & Regards
Anzar.M
Stef
Telerik team
 answered on 25 Mar 2013
2 answers
225 views
Hello,

At the moment, I'm setting up a reporting WCF service. I'll be using it for generating invoices. Right now, I can pass an invoicenumber as report parameter and it generates the correct invoice.

This problem is however, I'd like to generate one document with multiple invoices. For this, I think I need to pass multiple values for the reportparameter "OrderNumbers".

The first thing I came up with was the following:

var ordernumbers = new [] { "0123456""9876543" };
var parameters = new Dictionary<stringobject>(){{"OrderNumbers",ordernumbers}};
 
var docxReport = reportService.Render("DOCX", "FULL name of report", new Dictionary<stringobject>(),parameters);

reportService is a ReportServiceClient.

When I try this, I receive the following error message:
"Type 'System.String[]' with data contract name 'ArrayOfstring:http://schemas.microsoft.com/2003/10/Serialization/Arrays' is not expected. Consider using a DataContractResolver or add any types not known statically to the list of known types - for example, by using the KnownTypeAttribute attribute or by adding them to the list of known types passed to DataContractSerializer."

My question is, is it possible to add a known type to the default datacontractserializer and how can this be done?
I suppose I have to create an instance of the ReportServiceBase class, so I can add a known type here somehow.
Or is there any other way to pass multiple values for this parameter?

With kind regards.
Accok5
Top achievements
Rank 2
 answered on 25 Mar 2013
2 answers
550 views
I'm trying to use the approach mentioned in the following article to get textbox values:

http://www.telerik.com/help/reporting/using-section-events.html


I'm getting the following error:

Error   1   Cannot implicitly convert type 'Telerik.Reporting.Processing.ProcessingElement' to 'Telerik.Reporting.Processing.ReportItemBase'. An explicit conversion exists (are you missing a cast?)  

What am I doing wrong?

private void detail_ItemDataBound(object sender, EventArgs e) 
        { 
            Telerik.Reporting.Processing.DetailSection section = sender as Telerik.Reporting.Processing.DetailSection; 
            Telerik.Reporting.Processing.ReportItemBase extraShipping = section.ChildElements.Find("extraShippingCostTextBox", false)[0]; 
        } 


Mohammed
Top achievements
Rank 2
 answered on 23 Mar 2013
1 answer
77 views
Hi,
How to set report header and footer for sub reports in asp.net using telerik report?.

Thanks & Regards
Anzar.M
Peter
Telerik team
 answered on 22 Mar 2013
1 answer
815 views
Hi,
How to set sub report page header and footer for every pages?.

Thanks & Regards
Anzar.M
Peter
Telerik team
 answered on 22 Mar 2013
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?