Telerik Forums
Reporting Forum
3 answers
953 views
Hello,

I have not been able to build my solution because of this error:

Error   64   The type 'Telerik.ReportViewer.WebForms.ReportViewer' exists in both 'c:\Users\me\AppData\Local\Temp\Temporary ASP.NET Files\root\21b51189\d0797591\assembly\dl3\68de48c5\40e0037f_14fbcb01\Telerik.ReportViewer.WebForms.DLL' and 'c:\Windows\assembly\GAC_MSIL\Telerik.ReportViewer.WebForms\4.1.10.921__a9d7983dfcc261be\Telerik.ReportViewer.WebForms.dll'   C:\Projects\TheaterSales\DemoSite\BoxOffice\EventManagment\PrintAttendeeTickets\eTicketsPerEventId.aspx   11   

Any ideas on what to do? thanks

Error: http://img11.imageshack.us/img11/3103/builderor1.png

Code On Page:

<%@ Page  Language="C#" MasterPageFile="~/AdminMasterPage.master" AutoEventWireup="true" CodeFile="eTicketsPerEventId.aspx.cs" Inherits="BoxOffice_EventManagment_PrintAttendeeTickets_eTicketsPerEventId" %>
<%@ Register Assembly="Telerik.ReportViewer.WebForms, Version=4.1.10.921, Culture=neutral, PublicKeyToken=a9d7983dfcc261be"
    Namespace="Telerik.ReportViewer.WebForms" TagPrefix="telerik"  %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentplaceholderRight" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="conMain" Runat="Server">
 
    <telerik:ReportViewer runat="server" ID="report1" Width="100%" Height="700px" BorderStyle="None"
         
    Report="ReportTestClassLibrary1.ViewEticketsByEventId, SimpleTickReporting, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" >
    </telerik:ReportViewer>
     
</asp:Content>


web.config

    <compilation debug="true" batch="false">
            <assemblies>
                <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                <add assembly="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                <add assembly="System.Drawing.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                <add assembly="System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                <add assembly="System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                <add assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                <add assembly="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                <add assembly="System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                <add assembly="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                <add assembly="System.Web.Extensions.Design, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                <add assembly="Telerik.Reporting, Version=4.1.10.921, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE"/>
                <add assembly="Telerik.ReportViewer.WebForms, Version=4.1.10.921, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE"/>
      </assemblies>
        </compilation>
 
 
<controls>
                <add tagPrefix="uc1" tagName="NewsArticles" src="~/MasterPages/Controls/NewsArticles.ascx"/>
                <add tagPrefix="uc1" tagName="CurrentEvents" src="~/MasterPages/Controls/CurrentEvents.ascx"/>
                <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/>
                <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                <add tagPrefix="cc2" namespace="AjaxControlToolkit" assembly="AjaxControlToolkit"/>
                <add tagPrefix="cc1" namespace="TS.Common.WebUI.Controls" assembly="CommonClassLib"/>
                <add tagPrefix="ST" namespace="SimpleTick.WebControls"/>
                <add tagPrefix="telerik" namespace="Telerik.ReportViewer.WebForms" assembly="Telerik.ReportViewer.WebForms, Version=4.1.10.921, Culture=neutral, PublicKeyToken=a9d7983dfcc261be"/>
            </controls>
 
 
<httpHandlers>
            <remove verb="*" path="*.asmx"/>
            <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
            <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false"/>
            <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false"/>
            <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false"/>
            <add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false"/>
            <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/>
            <add path="Telerik.ReportViewer.axd" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=4.1.10.921, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" verb="*" validate="true"/>
        </httpHandlers>
Neli
Telerik team
 answered on 26 Sep 2019
14 answers
2.6K+ views
Hi all, is there a way to draw rounded rectagles? In shape tool i have squares, round, cross, but i didnt find a way to round the corners.

Thank you
Neli
Telerik team
 answered on 26 Sep 2019
6 answers
216 views

I would like to add a gap in the graph based on my first series.

My data are in DateTime Scale so if my first series x0 value is e.g. 30.11.2019 next label steps are 30.12.2019, 30.01.2020 etc.

I want to set the x0 value to 01.11.2019 when my first series x0 value is 30.11.2019, 01.12.2019 when my first series of data is 11.12.2019 etc.

I notice there are 'maximum' and 'minimum' fields in label's properties but I can only enter there static date like 01.01.2010...

I would like to add there an expression: ' = "01/"+First(Fields.StartDate.Month)+"/"+First(Fields.StartDate.Year) ' but in response I show warning "Propery value is not valid".

Is there any way to solve my problem?

 

Mark
Top achievements
Rank 1
 answered on 26 Sep 2019
1 answer
249 views

Hi,

I have a ReportViewer control:

<tr:ReportViewer ReportSource="{Binding MyReportSource}"/>


A report:

public partial class MyReport : Telerik.Reporting.Report
{
    public MyReport()
    {
        InitializeComponent();
    }
}

 

A view model:

public class ViewModel
{
    public ReportSource MyReportSource { get; set; } = new InstanceReportSource { ReportDocument = new MyReport() };
    public IList<MyReportModel> MyModels { get; set; }
}

 

The ReportViewer control displays the structure defined in MyReport.

I assume that the ReportSource binding is working properly.

 

But how do i bind MyModels as a data source for MyReportSource,

so that it actually renders some data?

 

Thanks in advance,

machine spirit

 

Thorsten
Top achievements
Rank 1
 answered on 26 Sep 2019
3 answers
209 views

Web service data source is not working properly in release(R3-2019).

I'm using Web service data source with OData to show some information about sales invoices. I need to show not all of columns of a table, but some of the columns. That's why I'm using $select operator at the end of the odata query(See second attached picture). So, I'm not able to use $select or even $expand operators in new release(R3-2019), because it shows an error(404). $select, $expand were working before(R2-2019), but in new release it is not.

Can some one help me on this case?

Tursunkhuja
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 26 Sep 2019
13 answers
926 views

I am updating an ASP.Net WebForms application which uses the now obsolete WebForms ReportViewer.  I am converting this to use the HTML5 WebForms viewer instead.  We use ReportBooks in our application to display a collection of reports as one.  In your documentation article: "How to Display a ReportBook in Viewer", it states:  "Created ReportBook can be passed to the report viewer's report source as TypeReportSource."  But the viewer only takes: Telerik.ReportViewer.Html5.WebForms.ReportSource so how am I to pass the ReportBook to the viewer?

Thanks,

Lisa

Eric R | Senior Technical Support Engineer
Telerik team
 answered on 25 Sep 2019
6 answers
925 views
Does Telerik Report Designer support .NET Core (2.1). Does it have dependency on .NET framework (or) .NET Standard?
Karl
Top achievements
Rank 1
 answered on 25 Sep 2019
7 answers
830 views
Hi there,

After having some issues figuring out how to get multiple reports in a single document, I finally stumbled onto the ReportBook class. 

I have implemented a number of different single page report documents and have, up until now, had no trouble adding them to the book and getting them to display. The issue that I've come across is that I have one derivation of the report that requires three separate instances of a single page, so

public class MultiSheetReport_Group1 : Telerik.Reporting.ReportBook
{
    public MultiSheetReport()
    {
        this.Reports.Add(new CoverPages.GroupOneCoverPage());
        this.Reports.Add(new ItemizedPages.GroupOneItems());
    }
}

now, I have an Group that requires a monthly breakout of the itemized page, so there is a GroupFourItems report that takes in both the id to read as well as the month value that I would like to print that report for.  The issue that I am having is that for each instance of the Monthly Report, the same value is being sent to the ObjectDataSource constructor for the month value.

I've attempted to create another constructor for the MultiSheetReport() like so:

public MultSheetReport(int parentId)
{
    var monthTriplet = DateTimeHelper.GetMonthOrdinals(parentId);
    // monthTriplet is a Tuple of int, int, int
    var cvrPage = new CoverPages.GroupOneCoverPage();
    cvrPage.ReportParameters.Clear();
    cvrPage.ReportParameters.Add(new ReportParameter("id", ReportParameterType.Integer, parentId));
    this.Reports.Add(new CoverPages.GroupOneCoverPage());
    
    var m1ItemPage = new ItemizedPage.GroupOneItems();
    m1ItemPage.ReportParameters.Clear();
    m1ItemPage.ReportParameters.Add(new ReportParameter("id", ReportParameterType.Integer, parentId));
    m1ItemPage.ReportParameters.Add(new ReportParameter("month", ReportParameterType.Integer, monthTriplet.Item1));
    this.Reports.Add(m1ItemPage);
 
    var m2ItemPage = new ItemizedPage.GroupOneItems();
    m2ItemPage.ReportParameters.Clear();
    m2ItemPage.ReportParameters.Add(new ReportParameter("id", ReportParameterType.Integer, parentId));
    m2ItemPage.ReportParameters.Add(new ReportParameter("month", ReportParameterType.Integer, monthTriplet.Item2));
    this.Reports.Add(m2ItemPage);
}

 and so on...
The first problem is that the parameterized constructor for the reportbook is never called as the report, only the default constructor.  This leads to the second issue which is that when I put a breakpoint on the constructor for the ObjectDataSource that backs the ItemizedPage.GroupOneItems report class, the exact same value is passed in for each of the months.  I'm not entirely sure how to fix this.  

Any thoughts?

Thanks.

Todor
Telerik team
 answered on 25 Sep 2019
4 answers
561 views

Hi,

Is there a way to dynamically set the chart height based on the number of data rows? The chart looks fine when there are about 10-12 rows of data, but anything more and it starts to squish to meet the height requirements of the chart. I'm assuming there is a way and I'm just missing it!

I'm using the standalone Telerik Report Designer FYI. I've attached photos for an example.

Neli
Telerik team
 answered on 25 Sep 2019
1 answer
97 views

Hi, I have a report act as a header template as follows:

var template = new TemplateReport{ Header = "Some header"};

where updating the custom properties will also update the textbox value.

When I want to use the template, I will just create the template, and do the such things:

var template = new TemplateReport{ Header = "Some header"};

var content = new ContentReport();

template.Content = content;

 

How can I do such things with report book? Thanks!

Eric R | Senior Technical Support Engineer
Telerik team
 answered on 24 Sep 2019
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?