Solved

Opening Crystal report with Parameters in ASP.Net application.

Posted on 2011-03-08
5
764 Views
Last Modified: 2012-05-11
I used following namespaces.I am getting the errors .How to correct these errors and compile it.

Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.Shared
these are the errors:
NameSpace or Type defined in the Imports 'CrystalDecisions.CrystalReports.Engine' doesn't contain any public member or cannot be found.Make sure the namespace or type is defined and contains atleast one public member.Make sure the imported element name doesn't use any aliases.
NameSpace or Type defined in the Imports 'CrystalDecisions.Shared' doesn't contain any public member or cannot be found.Make sure the namespace or type is defined and contains atleast one public member.Make sure the imported element name doesn't use any aliases.

In a public method I am retrieving the passed parameters and the following errors are
showing in the method.
I declared the variables like this.
Dim rp As New ReportDocument
Dim mLogin As New TableLogOnInfo
Dim mTable As CrystalDecisions.CrystalReports.Engine.Table
Dim pFieldDef As ParameterFieldDefinitions = rp.DataDefinition.ParameterFields
pValues = New ParameterValues
pDiscreteValue = New ParameterDiscreteValue
sFileFrt = CrystalDecisions.Shared.ExportFormatType.PortableDocFormat

I am getting the following errors:              
Type 'ReportDocument'is not defined
Type 'TableLogOnInfo' is not defined
Type 'CrystalDecisions.CrystalReports.Engine.Table' is not defined
Type 'ParameterFieldDefinitions' is not defined
Type 'ParameterValues' is not defined
Type 'ParameterDiscreteValue' is not defined
Type 'CrystalDecisions'is not defined or inaccessible due to its protection level.

How to correct these errors and compile it.

Thanks
0
Comment
Question by:KavyaVS
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 35074912
What version of Crystal are you using?

What version of Visual Studio?

mlmcc
0
 

Author Comment

by:KavyaVS
ID: 35076773
crystal reports 11, Visual Studio2010,.Net 3.5.

Thanks
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 35078208
As far as I know CR XI is not supported on VS2010.  You need to use the version of Crystal that was developed for VS2010

You can download it from this loink
http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/22083

mlmcc
0
 

Author Closing Comment

by:KavyaVS
ID: 35200869
It is not a complete solution.
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 35201361
What more do you need?

mlmcc
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question