954,593 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Crystal Report - Type 'ReportDocument' is not defined

Hi,

I tried to view crystal report by using crystal report viewer in Visual Studio 2010.
However when i tried to declare ReportDocument, it is underlined with blue curly line.
I had done the following in the code behind file.

Imports System.Data
Imports System.Data.Odbc

Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.Shared
Imports CrystalDecisions.Web


the first two crystalDecisions was underlined with green curly line as well, and i had no idea how to solve it.

i had done the following in asp.net page

<%@ Register Assembly="CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
    Namespace="CrystalDecisions.Web" TagPrefix="CR" %>

...

    <form ID="crystalForm" runat="server">
   <div>
        <CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="true"
            EnableDatabaseLogonPrompt="False" EnableParameterPrompt="False" PrintMode="ActiveX" />
    </div>
    </form>


Anyone can help?.. Thanks for your time..

BlurrieBlue
Light Poster
43 posts since Sep 2011
Reputation Points: 10
Solved Threads: 4
 

Hi all, I had solved the problem. The problem is too many compilation setting in the web.config file. However another problem had arise. When i click on the next button or print button, the crystal report disappear!!~.. HELP!!~..

BlurrieBlue
Light Poster
43 posts since Sep 2011
Reputation Points: 10
Solved Threads: 4
 

Hi, I had solved the problem by putting the calling crystal report statement out of postback statement.

BlurrieBlue
Light Poster
43 posts since Sep 2011
Reputation Points: 10
Solved Threads: 4
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: