Telerik Forums
Reporting Forum
1 answer
426 views
I'm getting the following error in all Telerik reports in a .NET 4.0 web app I have recently taken over from somebody else who has resigned. Thus far I've had success by installing required MSI files and removed hard-coded versions in web.config files and adding references to the DLL files. But this approach hasn't worked for Telerik ReportViewer. Am I missing something? I've installed Reporting Q3 2010 and added references to Telerik.Reporting.dll and Telerik.ReportViewer.WebForms.dll and also ticked quite a few related namespaces below these references in the properties for the solution, but am getting nowhere. I have never used Telerik before but like what I see so far, apart from these errors :-(

Here's the error (and thanks):

 

Server Error in '/' Application.

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Unknown server tag 'telerik:ReportViewer'.

Source Error:

Line 3:  </asp:Content>
Line 4:  <asp:Content ID="Content2" ContentPlaceHolderID="cphReport" runat="server">
Line 5: <telerik:ReportViewer ID="ReportViewer1" runat="server" Report="ReportsLib.SummaryByActivity, ReportsLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" Line 6:          Skin="Office2007" Width="100%" Height="700px" DocumentMapVisible="False" 
Line 7:          ShowZoomSelect="True">

Source File: /MyReport.aspx    Line: 5


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.225
Marc Fearby
Top achievements
Rank 1
 answered on 31 Mar 2011
1 answer
250 views
I am using Reporting Q2 2010. In this release, is it possible to detect which rows of a table are rendered as the first row and the last row of each rendered page of a rendered report?
So, e.g., if I have a table of five rows of which the first three rows are rendered on the first page of the rendered report and the last two rows are rendered on the second page of the rendered report - then is it possible to detect that the first and fourth row are rendered as the first row and the third row is rendered as the last row on their respective rendered pages?
Peter
Telerik team
 answered on 31 Mar 2011
1 answer
157 views

Hello.

I am using Telerik Reporting Q1 2011 version.

When I drop the crosstab control on the design surface of the report, the crosstab wizard does not open/display at all. How do I get it to open.

Thank you.
Francis

Peter
Telerik team
 answered on 31 Mar 2011
2 answers
128 views
Hi I'm working on a webproject and using telerik reporting to display custom reports.

I have the following Solution Structure..

-Solution
 + Web Project (Web)
 + Class Library (Reports)

I have designen a report that takes dynamic parameters and builds multivalue parameters from what has prev been selected.

So in the report i have a first parameter Page, page is not a multivalue. When a page is selected say you select ID 5, the second parameter takes the selected value and calls and stored procedure with the first parameters value as a parameter passed to the sp. Here everything is ok. However when it comes to the second parameter which is a multivalue. I have choosen so that the third parameter takes the selected values of the second and calls an sp with the values. To get the values i am using a userfunction like below
public static string FormatArray(object[] array)
       {
           StringBuilder sb = new StringBuilder();
           foreach (object o in array)
           {
               if (sb.Length > 1)
               {
                   sb.Append(", ");
               }
               sb.Append(o.ToString());
           }
           return sb.ToString();
       }

In the Report Preview & Html Preview this works perfect and everything is displayed and bound as it should be..

However when migrating this report to my web solution I have the following setup.

Enheter.ascx

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Enheter.ascx.cs" Inherits="Web.controls.Reports.Enheter" %>
<%@ Register Assembly="Telerik.ReportViewer.WebForms, Version=5.0.11.316, Culture=neutral, PublicKeyToken=a9d7983dfcc261be"
    Namespace="Telerik.ReportViewer.WebForms" TagPrefix="telerik" %>
<telerik:ReportViewer ID="ReportViewer1" runat="server" Width="100%" Height="700px"
   >
</telerik:ReportViewer>



Backend

 
Report myReport = new Rapporter.K2.Report1();
 
                myReport.ReportParameters["nkod"].Value = nkod;
                myReport.ReportParameters["sysID"].Value = BaseLogic.GlobalSystemID.intSystemID;
                using (CoreEntities db = new CoreEntities(clsBaseLogic.SqlConnEntityString))
                {
                    myReport.ReportParameters["strEnhet"].Value = db.tblTree_item.SingleOrDefault(k => k.intTreeItemID == nkod).strTreeItem;
                    myReport.ReportParameters["strPeriod"].Value = db.tblCore_Period.SingleOrDefault(k => k.intPeriodID == BaseLogic.intPeriodID).strDescription;
 
                }
                ReportBook book = new ReportBook();
                book.Reports.Add(myReport);
                ReportViewer1.Report = book;


This is just because I want to set some parameters before making the report..


Everything shows up as it should but when trying to select a value inside my second parameter , the third parameter who uses my userfunction displays the following error.

The expression contains undefined function call FormatArray().
 
at Telerik.Reporting.Expressions.FunctionNode.Eval(Object row, Object context)
at Telerik.Reporting.Processing.Data.MultidimensionalQueryProvider.Evaluate(Object value, Object data)
at Telerik.Reporting.Processing.Data.SqlQueryProvider.GetEvaluatedParameters()
at Telerik.Reporting.Processing.Data.SqlQueryProvider.GetCommandParameters(Boolean evaluateParameters)
at Telerik.Reporting.Processing.Data.SqlQueryProvider.CreateCommand(IDbConnection connection, Boolean evaluateParameters)
at Telerik.Reporting.Processing.Data.SqlQueryProvider.CreateCommand(IDbConnection connection)
at Telerik.Reporting.Processing.Data.SqlDataEnumerable.d__0.MoveNext()
at Telerik.Reporting.Processing.Data.ResultSet.SeedData(IEnumerable`1 rawData)
at Telerik.Reporting.Processing.Data.ResultSet.Fill(IEnumerable`1 data)
at Telerik.Reporting.Processing.Data.SqlQueryProvider.Execute(MultidimensionalQuery query)
at Telerik.Reporting.Processing.ParametersManager`1.GetAvailableValuesData(ReportParameterAvailableValues availableValuesDef, ExpressionNode valueExpression, MultidimensionalQueryProvider& provider)
at Telerik.Reporting.Processing.ParametersManager`1.CalculateParameterValues(T parameter, ReportParameter parameterDef, IDictionary`2 parameterValues)
at Telerik.Reporting.Processing.ParametersManager`1.Calculate(T parameter, IDictionary`2 parameterValues)
at Telerik.Reporting.Processing.ParametersManager`1.CalculateChildren(T parameter, IDictionary`2 parameterValues)
at Telerik.Reporting.Processing.ParametersManager`1.Calculate(T parameter, IDictionary`2 parameterValues)
at Telerik.Reporting.Processing.ParametersManager`1.CalculateChildren(T parameter, IDictionary`2 parameterValues)
at Telerik.Reporting.Processing.ParametersManager`1.Calculate(T parameter, IDictionary`2 parameterValues)
at Telerik.Reporting.Processing.ParametersManager`1.GetParameters(IDictionary`2 parameterValues)
at Telerik.ReportViewer.WebForms.ParametersPage.OnLoadComplete(EventArgs e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

the third parameter datasource is an sp with the following parameters inserted -> = FormatArray(Parameters.survFieldsGroup.Value)
Parameters.survFieldsGroup being the second parameter.

It seems the report doesnt know where the userfunction is when it has been migrated to the reportbook.

How can i fix this?

Anders
Peter
Telerik team
 answered on 31 Mar 2011
2 answers
302 views
Hi

We're creating a reporting application that uses a shared external style sheet across a number of reports.

I'd like to create a report that lists all the styles in the stylesheet - I thought I'd try something like this in the report constructor (pseudo code only):

Add the stylesheet file to the reports
Use the collection of styles as an object data source
Create a conditional formatting rule that uses a named style for each row.

I can't find a way to enumerate the styles that are added by external style sheet - this is my code in the report constructor:

ess = new ExternalStyleSheet(path);
ExternalStyleSheets.Add(ess);
 
foreach (StyleRule style in StyleSheet)
{
    //do something with styles;
}

no styles are found by the foreach loop...

Am I doing something wrong? Can my approach work?

thanks
Andy
Andy
Top achievements
Rank 1
 answered on 31 Mar 2011
1 answer
1.5K+ views
Hi,

What is the property that needs to be set in order to position a pie chart near the left of the plot area?  Right now my pie chart is positioned in the centre of the plot area and is sometime overlapped by the legend.

So basically I want to move the pie chart image itself to the left inside the plot area allowing for more room to display the legend.

Thanks for any help.
Peter
Telerik team
 answered on 31 Mar 2011
5 answers
141 views
Good Day All

I have a strange thing happening in my project. i have a report that retrieve the barcode info based on a certain criteria. The data gets filtered and it get displayed. but this value is the Value that is assigned to a barcode from the database. now on design and preview it shows the barcode,  but when i run it in my app, it only shows the code number from the database not the barcode and the number as depicted in the preview. what is the problem. i have attached the properties of the barcode on design mode.

Vuyiswa
Top achievements
Rank 2
 answered on 31 Mar 2011
3 answers
92 views
I have a simple report that has 4 columns.
Section, Subsection, Mandatory, and detail.

The report is grouped by the Section, Subsection, and Mandatory fields.

The page breaks and the report looks as I want it on the preview in the design but it has different page breaks in the HTML preview. And if the actual running of the code, the detail data looks good but the Section and Subsecition never change.

I am using VS 2010,with C# and the most current version of Telerik Reporting. This is an ASP application. Any ideas on how to fix this?
Hrisi
Telerik team
 answered on 31 Mar 2011
8 answers
114 views
Good Day All

i am using Silverlight Reporting. i have tried to follow the demo example many times , just to display a barcode report that is not even connected to the database, but i could not. I have attached the example project that fails. So basically i have a class library that has a report and and i have a Silverlight app that has a asp.net or html project that host the silverlight, and i have created a service from the web app and and i have referenced the report from there. but still the barcode dont show.

Please find the attached project

http://www.vuyiswamaseko.com/Report2.zip

Thanks
Vuyiswa
Top achievements
Rank 2
 answered on 30 Mar 2011
1 answer
252 views
Hi,
I have some problem using crosstab to display the percentage of number of items against the total of each group. Right now it's calculating agains the total count of the entire report.
Attach is my screenshot with explaination.

Thanks
Quan Nguyen
Peter
Telerik team
 answered on 30 Mar 2011
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?