473,699 Members | 2,734 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

'CrystalReportV iewer' is ambiguous in the namespace 'CrystalDecisio ns.

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 CrystalReportVi ewer1 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.SetDataSou rce(m_dstG)
Once I executed this code I get the error message.
Any help?
Nov 18 '05 #1
3 7499
Make sure you include both CrystalDecision s.Web and
CrystalDecision s.CrystalReport s.Engine

Then when you dim your oRpt as a
CrystalDecision s.CrystalReport s.Engine.Report Document 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.SetDataSou rce(m_dstG)



"Nancy." <za****@miamida de.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 CrystalReportVi ewer1 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.SetDataSou rce(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 CrystalDecision s.Web and
CrystalDecisio ns.CrystalRepor ts.Engine

Then when you dim your oRpt as a
CrystalDecisio ns.CrystalRepor ts.Engine.Repor tDocument 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.SetDataSo urce(m_dstG)



"Nancy." <za****@miamida de.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 CrystalReportVi ewer1 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.SetDataSou rce(m_dstG)
Once I executed this code I get the error message.
Any help?

.

Nov 18 '05 #3
Are you seeing the CrystalReportsV iewer 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.
Programmaticall y set the Text of the upper label at the beginnging of your
code that populates the report and then programmaticall y set the Text lower
label after you do the DataBind(). This way you know the code is being
processed.

"Nancy" <za****@miamida de.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
2148
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 CrystalDecisions.Windows.Forms.CrystalReportViewer crystalReportViewer1; Thanks.
0
1443
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 error: Fail to get the specific page. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
2
2421
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 to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS1595: 'CrystalDecisions.Web.CrystalReportViewer' is defined in multiple places; using definition from...
3
16639
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 ---------------------------------------------------------- Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your...
1
7439
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 for me. I'm using the CrystalDecisions.Windows.Forms.CrystalReportViewer available in CrystalDecisions.Windows.Forms.dll, version 9.2.3300.0. Why does the crystal report viewer refuse to reload its data when the RefreshReport method is called...
4
6599
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 within .NET. I'm connecting to an Oracle database. I'm using System.Data.OracleClient, dll v1.1.4322. I can connect to the server with no problem through the report. I place a Windows CrystalReportViewer on a form, but when I run the form, I...
6
1342
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 trying to connect to an Oracle 8.1.7 database. I can connect to the database no matter how I try (within the report, using TOAD, using SQL*Plus), but when I try to view the report, I am presented with a logon dialog box that always fails with a...
0
4376
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 just one WinForm, and one CrystalReportViewer control on it. After letting the upgrade wizard do its, I attempted to run the application, however it died on the line in the InitializeComponent() method where it was attempting to create a new...
0
1086
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" Codebehind="nomiselereport.aspx.vb" Inherits="icisa.nomiselereport" %> Line 2: <%@ Register TagPrefix="cr" Namespace="CrystalDecisions.Web" Assembly="CrystalDecisions.Web, Version=9.1.3300.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" %> Line 3: <!DOCTYPE HTML PUBLIC...
0
8685
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9032
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8905
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7743
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5869
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4373
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4625
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3053
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2008
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.