Solved

Opening Crystal report with Parameters in ASP.Net application.

Posted on 2011-03-08
5
763 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
  • 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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

Suggested Solutions

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

860 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