Solved

Opening Crystal report with Parameters in ASP.Net application.

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

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 101

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 101

Expert Comment

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

mlmcc
0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

628 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