Telerik Forums
Reporting Forum
5 answers
585 views
I'm attempting to use the report viewer ASP.Net control in an ASP.Net MVC application. When I include the viewer control on a page I get the folwwoing error.


The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).


I'm using the simplest possible view to display the report viewer and which I copied from a Telerik sample that demonstrates how to use the report viewer in an ASP.Net MVC application (the sample does not run).

<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
 
<%@ Register Assembly="Telerik.ReportViewer.WebForms, Version=6.0.12.302, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" Namespace="Telerik.ReportViewer.WebForms" TagPrefix="telerik" %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Reports
</asp:Content>
 
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>Test Report</h2>
 
     <script runat="server">
         
        public override void VerifyRenderingInServerForm(Control control)
        {
            // to avoid the server form (<form runat="server">) requirement
        }
 
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
             
            // bind the report viewer
            ReportViewer1.Report = new Mine.Web.UI.Reports.HelloWorld();
        }
    </script>
    <telerik:ReportViewer runat="server" ID="ReportViewer1" />
</asp:Content>


The error is being caused by the line below in my Site.Master file. Removing that line allows the report viewer to display but breaks the application because now the stylesheets needed for the Telerik ASP.NEt MVC controls aren't being loaded.

<%: Html.Telerik().StyleSheetRegistrar().DefaultGroup(group => group.Add("telerik.common.css").Add("telerik.metro.css").Combined(true).Compress(true)) %>

This seems like a really common scenario? Surely I'm not the first person to try and use the report viewer and the MVC extensions at the same time?

Vassil Petev
Telerik team
 answered on 26 Mar 2013
3 answers
220 views
Hi,
Pl's find the attachment. These are from your live demo. I want to repeat the first column to every report pages. This fields are marked with red rectangles on the attachment. On your demo its working properly. How to achieve this?. 


Thanks & Regards
Anzar.M
Peter
Telerik team
 answered on 26 Mar 2013
1 answer
99 views
The export to Excel does not allow for cell specific font size.

Will this functionality be added in the future?
Peter
Telerik team
 answered on 26 Mar 2013
2 answers
103 views
Hello, 

We are investigating which controls will be better to use. We have ASP.NET MVC application that need to make the request to the server smoothly through AJAX. We are aiming to build a reporting web application, but it is still a bit undefined how deep analyses it should display. So, we still don't know if we are going to use the current relational database or cubes. Can you please advice if it is better to use the MVC chart control with AJAX or the reporting tools or combining them?

Regards,
Teodora.
Vassil Petev
Telerik team
 answered on 26 Mar 2013
2 answers
85 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
183 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
665 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
127 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
518 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
86 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
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?