.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

'CrystalReportViewer1' is not a member of 'ReportViewer'

Posted By:      Posted Date: August 27, 2010    Points: 0   Category :ASP.Net

Hello, I added a CrystalReportViewer control to my ReportViewer page and when I try to set the CrystalReportViewer1.ReportSource in code I get the error "'CrystalReportViewer1' is not a member of 'ReportViewer'". 

I noticed that some of our older projects reference CrystalDecisions.ReportAppServer.ClientDoc but I am unable to find that dll anywhere on my machine so this project does not reference it. 

Any ideas?




View Complete Post

More Related Resource Links

Get Member from LDAP using C# 2.0


I'm currently writing a process where I need to determine if an User on my LDAP string is an Admin.

How can I accomplish this?  What would be the easy and quickest way?

I've been trying to use the code below..... Any feedback is greately appreciated. Tks



Session problem with display of image in row of reportviewer


Hello techies...

I am new to this sql reporting service. But anyhow by surfing I am able to bind the report but i was stuck in image display.

Anyways, i also managed that. But the real problem is whenever i was keeping a image control in rdlc report i was having session prob. If i remove the image control then as usual report works fine.

Please suggest me some solution.... either for session problem or for image display. I am keeping the image name in database but for binding the rdlc report i am using a store procedure which return the path (static) concating with the image name(kept in database).

Hope to find a solution .....

(Microsoft.Reporting.WebForms.ReportViewer) is not compatible with the type of control (Microsoft.Re


 I am trying to use ReportViewer 9 in Visual Studio 8 but I get this error when I try to run the page:

The base class includes the field 'ReportViewer1', but its type (Microsoft.Reporting.WebForms.ReportViewer) is not compatible with the type of control (Microsoft.Reporting.WebForms.ReportViewer).

Please help if you can!


Automatic Batch Printing in ReportViewer Remote Mode


Please help me, i have a properly working codes that is capable of the following:

1. Printing of Reports from ReportViewer without using the build-in print ICON in the actual ReportViewer. to view the working for the printing alone please click here.

2. Batch Printing by making a loop and placing a checkbox on the gridview where the needed paramerter (DataKeyNames ID) is retrieved then pass to the ReportViewer

This is my Code

foreach (GridViewRow row in GridView1.Rows)
            CheckBox chk = (CheckBox)row.FindControl("CheckBox2");
            if (chk.Checked)
                ReportViewer1.ServerReport.ReportServerUrl = new Uri("http://TestServer/ReportServer");
                ReportViewer1.ServerReport.ReportPath = @"/Tavern/StudPaymentReport";
                ReportViewer1.ProcessingMode = ProcessingMode.Remote;
                ReportParameter[] rptParams = new ReportParameter[1];

                rptParams[0] = new ReportParameter("ClientID", GridView1.DataKeys[row.RowIndex].Value.ToString());


ReportViewer :: Failed to enable constraints. But my statement is valid!!

  • A
  • n error has occurred during report processing.
      • Exception has been thrown by the target of an invocation.
        • Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints.

    Why do I keep getting this error, even when not using any data on the report. When I run the query in SQL server I get a resultset. However when I try to render the report I get this error.


    Dynamic Report in reportviewer


    HI I m sorry to say this But this task too urgent.

     Ex- i have two tables in my db name called Comdetails, deptdetails.

    TCS is a one company name stored in ComDetails and Company_ID took as primany key,

    TCS having 10 department stored in deptdetails and Company_ID as foreign key.

    so now in DB we have available one company with 10 departments.

    so now i need to generate report , i m using report.rdlc and reportviewer.

    i hope upto now its clear.

    my task-

    1- i have two pages in a report in page 1 i m doing designing report like top i  need to show companydetails, middle frist department details in deptdetails table , and bottom some calculation part leave about calculation part. in report page 2 on  top i need to show second department details from deptdetails next below the design again same design i did here i need to show 3 department details from deptdetails next below the design again same design i did here i need to show 4 department details from deptdetails next below again calculation part design leave about calculation part. so up to now i shown 4 department details here still i need to show 6 department details , for this programatically after 4 department details finish next generate dynamatically page 2 of re

    no response when refreshing reportviewer


    Hi guys, I've been struggling with this for some time now, but I can't figure out why it's not working. I got a gridview in which I'm selecting a specific row. This gives me a string back, which is used to load some data inside a datatable, using DAL The callback works and it's also giving the correct string to retrieve the wanted data. But when I'm trying to use this fresh data update my reportviewer (.rdlc) nothing happens. For now I'm testing the event with a simple button, but even with the button nothing happens. Does anyone know what I'm missing The DAL is working correct and I'm using .NET 3.5

    <rsweb:ReportViewer ID="ReportViewer" runat="server" Font-Names="Verdana" 
                                     InteractiveDeviceInfos="(Collection)"  WaitMessageFont-Names="Verdana" WaitMessageFont-Size="14pt" >
            <LocalReport ReportPath="Office\Reporting\InvoiceReport.rdlc" />                                
        protected void Button1_Click(object sender, EventArgs e)
            string strInvoiceId = "603663";
            tblInvoiceTableAdapter InvoiceAdapt = new tblInvoiceTableAdapter();
            TGU.tblInvoiceDataTable invoiceDt = InvoiceAdapt.GetIn


    • A data source instance has not been supplied for the data source 'EventDetail'.

    • I am stuck with this error.

    I searched for this but no respite.

    I am using the reportviewer in a drilled down report. The parent report shows up fine. But when I try to drill down i get the data source missing error.

    ObjectDataSource obDSS = new ObjectDataSource("Business.EventDetails", "GetEventDetailsReport");
                obDSS.SelectParameters.Add("workOrderID", workorderid);       

                rpViewer.LocalReport.ReportPath = "reports/WorkOrderDetails.rdlc";

    How to capture ReportViewer Mouse Events


    I have a ReportViewer which I'm pulling into a C# WPF project, and would like to be able to capture the row a user clicks on in the reportViewer, but have had no success tapping into the mouse event handlers.   Does anyone know how to accomplish this?  

    This MSDN link seems to imply that ReportViewer(winforms) supports mouse click events such as Click, DoubleClick..etc.  http://msdn.microsoft.com/en-us/library/microsoft.reporting.winforms.reportviewer_events.aspx, but I've not had any luck.

    If mouse events are not currently supported, does anyone know when they will be, and whether properties such as SelectedItem or SelectedIndex would also be exposed?

    Thanks for the help.

    Comparing Enum values in a collection - BC42025: Access of shared member, constant member, enum mem


    I am upgrading from asp1.1 to 2.0

    I use collection classes to sort data (e.g in datagrids etc)


    Enum newsFields
    End Enum

    Public Overloads Sub Sort(ByVal sortField As newsFields, ByVal isAscending As Boolean)
    Select Case sortField
    Case newsFields.title

    How to connect the OledbCommand object with another Member Function

    protected void GridViewTest_RowDeleting(object sender, GridViewDeleteEventArgs e)
           int deleteKey = Int32.Parse(GridViewTest.DataKeys[e.RowIndex].Value.ToString());
           OleDbCommand deleteCommand = new OleDbCommand();
           deleteCommand.CommandType = CommandType.StoredProcedure();
               deleteCommand.Parameters.AddWithValue("@empid", deleteKey);
     private DataTable  Connection1(string Storedprocedure)
           using (OleDbConnection MyConnection = new OleDbConnection(ConfigurationManager.AppSettings[0].ToString()))
               OleDbDataAdapter MyAdapter = new OleDbDataAdapter(Storedprocedure, MyConnection);
               DataTable MyTable = new DataTable();
               return MyTable;

    Hello Members,

               I need one help..I Don't know how to connect the command object with
    another Member function...
    I tried something in the above code...But i got error...Please put me in right direction...


    Make dynamic changes to ReportViewer Report design InteractiveSize property


    Hello all,

    Could someone share with me how to dynamically change the Report design InteractiveSize property?  I want to use a radiobutton list which has two options (complete list, paginated list) which changes the height of the Report display.  I wonder if I need to use the Report Parameters but how do I change and refresh to display the selected option.  Thank you.


    ReportViewer Calendar button Click does not show calendar


    I have a reportviewer on a page which is grabbing a report from a report server. the page is basically just a dropdownlist and a reportviewer control. The problem I have is that in the report the user have to provide the dates for teh report. The reportviewer automatically adds the textbox for the date entry and a calendar icon in front of it so the user can select the date. if I look at this page  in FireFox, when you click on the calendar button created by the reportviewer, the calendar control show up momentrily and dispappears. If you look at the same page in IE 7.0 nothing happens other than the page appears to be submitted. Does any body have any ideas on how to go about troubleshooting this bug?



    From 3.5 to 2.0: No default member found for 'DataTable'



    I'm trying to change the framework of an application I made a while from 3.5 back down to 2.0 as it's not compatible with the new server we put in (we're don't have permission to install 3.5 framework).

    So, I went into the project properties and under the Compile tab, changed the project to 2.0. When I tried to publish the project I got a lot of errors and warnings and the publish failed.

    In the 3.5 code, I had SQLSelect statement in a Dim which was labeled 'As DataTable'. When switching to 2.0, an error appears on the Dim saying: "Class 'System.Data.DataTable' cannot be indexed because it has no default property". So I simply took DataTable out of the code. Now, when I try to run the project, I get "No default member found for 'DataTable'.

    Here's the code:

    Function DisplayName(ByVal LoginName)
         Dim tempname(2) As String
         Dim signon As String
         tempname = Split(CheckUser(LoginName), "\")
         singon = tempname(1)
         Dim rst 'As DataTable
         rst = ExecSQLSelect("SELECT given_name, surname FROM ... etc")
         If rst.Rows.Count = 0 Then
              DisplayName = "Unknown"
              'This is where the error is:
              DisplayName = rst(0)("giv

    Class member autocomplete


    Is there in C# such feature as in VB when you create some class which inherits some interface and after clicking Enter after line Inherits SomeInterfaceHere all properties and functions which you need to inherit appear?

    DataContractSerializer deserialization puzzle - by-pass member initialization.

    Hi, I was using WCF and during the transmission of a object, of the type Book, see code below, the deserialization process throws a NullReferenceException. To isolate the problem, I uses a unit test like this rather than involving the full blown WCF marshalling. This appears to be solely a serialization/deserialization problem and has nothing to do with the communication issues in WCF. [Test] public void TestSerializeAndDeserializeBook() {     Book book = new Book( "Testing Serialization and Deserialization",                         new Person( 100, "Tom", "Smith" ),                         new Person( 101, "Peter", "Pan" ) );     DataContractSerializer ser = new DataContractSerializer( typeof(Book) );     using( Stream stm = new MemoryStream() )     {         ser.WriteObject( stm, book );         stm.Seek( 0, SeekOrigin.Begin );         Book regen = ser.ReadObject( stm ) as Book; // NullReferenceException here     &nb

    ReportViewer Error Asp.net Session expired

    When i am connecting Report Manager report through our ASP.NET 2.0 application using Report Viewer control frequently we get message ASP.Net Session expired .              How can we avoid this error.While i directly opens Reports through the Report Manager reports are opening without any problem.   My .Net application Code. ReportViewer1.ServerReport.ReportServerUrl = new Uri("http://SERVER/reportserver");ReportViewer1.ServerReport.ReportPath = @"/myreport/reportname";
    ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
    Sql Server  SharePoint  Silverlight  Others  All   

    Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend