473,408 Members | 1,973 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

'CrystalReportViewer' is ambiguous in the namespace 'CrystalDecisions.

It seems that I can not be able to display a crystal
report with the crystal viewer in a web application.
However, in Windows Application I do not have this kind
of problems.

In a Web form, I have the CrystalReportViewer1 and
databind to a SampleDorm.rpt that is part of my project.

The following code binds the dataset to the report's
setdatasource.

Dim oRpt As SampleDorm
oRpt = New SampleDorm
oRpt.SetDataSource(m_dstG)
Once I executed this code I get the error message.
Any help?
Nov 18 '05 #1
3 7485
Make sure you include both CrystalDecisions.Web and
CrystalDecisions.CrystalReports.Engine

Then when you dim your oRpt as a
CrystalDecisions.CrystalReports.Engine.ReportDocum ent instead of the class
of your actual report as you were doing.

So it should look something like this: (pardon my VB.NET code below as I use
C# usually).

Dim oRpt as ReportDocument
oRpt = new SampleDorm
oRpt.SetDataSource(m_dstG)



"Nancy." <za****@miamidade.gov> wrote in message
news:2e****************************@phx.gbl...
It seems that I can not be able to display a crystal
report with the crystal viewer in a web application.
However, in Windows Application I do not have this kind
of problems.

In a Web form, I have the CrystalReportViewer1 and
databind to a SampleDorm.rpt that is part of my project.

The following code binds the dataset to the report's
setdatasource.

Dim oRpt As SampleDorm
oRpt = New SampleDorm
oRpt.SetDataSource(m_dstG)
Once I executed this code I get the error message.
Any help?

Nov 18 '05 #2
Thanks for your prompt response. I am not getting the
error anymore, but the report is not displaying in the
screen.
-----Original Message-----
Make sure you include both CrystalDecisions.Web and
CrystalDecisions.CrystalReports.Engine

Then when you dim your oRpt as a
CrystalDecisions.CrystalReports.Engine.ReportDocu ment instead of the classof your actual report as you were doing.

So it should look something like this: (pardon my VB.NET code below as I useC# usually).

Dim oRpt as ReportDocument
oRpt = new SampleDorm
oRpt.SetDataSource(m_dstG)



"Nancy." <za****@miamidade.gov> wrote in message
news:2e****************************@phx.gbl...
It seems that I can not be able to display a crystal
report with the crystal viewer in a web application.
However, in Windows Application I do not have this kind
of problems.

In a Web form, I have the CrystalReportViewer1 and
databind to a SampleDorm.rpt that is part of my project.
The following code binds the dataset to the report's
setdatasource.

Dim oRpt As SampleDorm
oRpt = New SampleDorm
oRpt.SetDataSource(m_dstG)
Once I executed this code I get the error message.
Any help?

.

Nov 18 '05 #3
Are you seeing the CrystalReportsViewer control when viewing the page in a
browser? Is that control the only control you have on your page? Try
placing a Label just above and another just below the report viewer control.
Programmatically set the Text of the upper label at the beginnging of your
code that populates the report and then programmatically set the Text lower
label after you do the DataBind(). This way you know the code is being
processed.

"Nancy" <za****@miamidade.gov> wrote in message
news:02****************************@phx.gbl...
Thanks for your prompt response. I am not getting the
error anymore, but the report is not displaying in the
screen.

Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jordan | last post by:
Hi, I've declared the statement below in my form and somehow crystalReportViewer1 is always null. Is there anything wrong with the statement? private...
0
by: Chuck P | last post by:
We have an web application developed that uses the crystalreportviewer component to display reports. Sometimes when switching between pages of the report we are randomly getting the following...
2
by: suicidaltendencies | last post by:
Does anyone know how to fix this problem. I'm trying to create some Crystal Reports Thanks Harol Compilation Error Description: An error occurred during the compilation of a resource required...
3
by: Reza Nabi | last post by:
Hello I created a very simple page just to load a crystal report which was working just great Code started throwing the following exception, after I installed crystal report 9 advanced edition ...
1
by: Bob | last post by:
I'm asking here because I've posted this question in the crystal newsgroup, waited two weeks, and got zero response. I would be very appreciative if someone could shed some light on this problem...
4
by: tg | last post by:
My sincere apologies for the crosspost. I posted in one other ng. I am not sure which is the correct ng for this question.I'm using .NET 2003. This is the first time I've tried to use Crystal...
6
by: tg | last post by:
I've been trying for several days to get a Crystal report to display in a Windows form in VS 2003. I'm not new to .NET, nor to Crystal, but I've never tried to display a report until now. I'm...
0
by: Rod | last post by:
I've got Crystal Reports XI Release 2, for development with Visual Studio ..NET 2005. I've taken a VS .NET 2003 WinForms application that I wrote in C#, and upgraded it to VS .NET 2005. It has...
0
by: paruljain1978 | last post by:
File or assembly name CrystalDecisions.Web, or one of its dependencies, was not found. Source Error: Line 1: <%@ Page Language="vb" AutoEventWireup="false"...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.