473,786 Members | 2,366 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Unable to retrieve Crystal report in ASP.NET app

Raj



I am working on a ASP.NET 1.0 project in VS.NET 2003 and have added a
crystal report 9.2 report to it.

After building solution when I load the page with this report, it
gives me error

Compiler Error Message: BC30002: Type 'Report1' is not defined.

Report1.vb is the class object which gets created when the Report1.rpt
is added to the project. I have verified with ildasm utility that it sits in
my project.dll.

Why ASP.NET can't find it? Am I missing something here?

I am listing down the code for reference and would highly appreciate
any help or ideas.

Dim crReportDocumen t As Report1
Dim crTableLogonInf o As CrystalDecision s.Shared.TableL ogOnInfo
Dim crConnectionInf o As CrystalDecision s.Shared.Connec tionInfo
Dim crTable As CrystalDecision s.CrystalReport s.Engine.Table

' Make this a separate function ProvideLogOnInf o()
crReportDocumen t = New Report1
crTableLogonInf o = New CrystalDecision s.Shared.TableL ogOnInfo
crConnectionInf o = New CrystalDecision s.Shared.Connec tionInfo

crConnectionInf o.DatabaseName = "database"
crConnectionInf o.ServerName = "server" 'or DSN for ODBC
crConnectionInf o.UserID = "User"
crConnectionInf o.Password = "passsword"

crTableLogonInf o.ConnectionInf o = crConnectionInf o

For Each crTable In crReportDocumen t.Database.Tabl es
crTable.ApplyLo gOnInfo(crTable LogonInfo)
Next

'Trap any errors that occur on export
Try
CRV_CrystalRepo rtViewer.Report Source = crReportDocumen t
Catch err As Exception
Response.Write( err.ToString())

End Try


Jul 21 '05 #1
0 1222

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

Similar topics

1
19184
by: Stephan | last post by:
Hi, I'm using Visual Studio 2003 (C#) with the integrated Crystal Report software and have the following question: How can I assign a value (string) to an unbound (string) field in Crystal Report at runtime? Example: private void button1_Click(object sender,
0
4943
by: Mats | last post by:
Hello everyone ! I am using Crastal Reports for VS.Net and I have an assembly with several projects in one of them I have two Crystal reports. Although they worked fine for weeks and I haven't changed them, now I get the following error in both: "Unable to find the report in the manifest resources. ..." I checked the build action ("Embedded resource"), the vb-file in case of the property "ResourceName" (same return value as the name of...
0
928
by: Raj | last post by:
I am working on a ASP.NET 1.0 project in VS.NET 2003 and have added a crystal report 9.2 report to it. After building solution when I load the page with this report, it gives me error Compiler Error Message: BC30002: Type 'Report1' is not defined. Report1.vb is the class object which gets created when the Report1.rpt is added to the project. I have verified with ildasm utility that it sits in
0
1171
by: Bas Groeneveld | last post by:
For some reason I am unable to drag a CrystalreportViewer from the toolbox onto my web form design surface in VS.NET 2003 - I get a black circle with a diagonal line through it. I have installed the Crystal Reports components with my VS.NET and am able to add a new Crystal Report to the project (File|Add New Item|Web Project Items|Crystal Report. I assume that something has not been installed correctly. Does it need VB to be...
0
2727
by: Henry | last post by:
I have written an ASP/VB.Net application via VS 2003 (Crystal V9) that uses MS Access 2000 as its database. I can export reports that have no linked sub reports for printing. However, I'm unable to export reports that have linked subreports. I receive (a "Missing parameter field current value") on the following statement: Me.crReportDocument.Export() The main report requires 4 parameters. The linked reports do not require any...
1
17639
by: Izzy | last post by:
I created a windows service using VS 2005 in VB.NET and it runs on my Windows XP Pro machine just fine, now I'm want to install it on one of my servers which is a Windows 2000 Terminal server running sp4 version 5.00.2195. I also have .NET Framework 1.0, 1.1 and 2.0 installed on this server AND the server was rebooted after the .NET Framework 2.0 was installed. I had some custom actions set up in the installer class, thinking that might...
2
5273
by: Syrenic | last post by:
Hi Everyone, I recently developed an application using VB6 calling Crystal Report bundled with VB.NET. Problem lies here, whenever i make a call for a report view from MS Access in VB.NET. They will retrieve the data from MS Access and display it in the report viewer. But once i closes the viewer, the ldb file remains there and i can't do any other actions related to MS Access. How can I force remove ldb file in VB .NET? Or is there...
0
1340
by: ivce970 | last post by:
Hi everyone, I'm wruiting this message again cause I really need some help. I have installed VS NET 2003 and SQL Server 2005 Expess edition. I made a db for my small business with books, stores etc. In it I have a table called stores with these columns: storeID (int, NOT NULL) storeName (varchar, 40)
2
1965
by: =?Utf-8?B?QWxleCBNdW5r?= | last post by:
I am using Visual Studio 2005 Professional edition and built in CR version 10.2.3600.0 to create a web application. The front-end to the report is written in C#. Basically Report.aspx creates the datasets that the report needs then creates an instance of the strongly typed report then passes the populated dataset to the report then sets the report viewer to the report object. When the application is run, the report is created just...
0
9647
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
9491
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10357
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10104
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
9959
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8988
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...
1
7510
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6744
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();...
1
4063
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

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.