Solved

Opening Crystal report with Parameters in ASP.Net application.

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

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.…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

758 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now