Solved

Opening Crystal report with Parameters in ASP.Net application.

Posted on 2011-03-08
5
761 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
C# MVC and a global static factory that never dies 4 58
Field in crystal 2011 is being cut off. 9 33
Delete HTML table rows 12 28
Crystal Reports 12 32
I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

775 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