473,797 Members | 3,144 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


Nov 18 '05 #1
0 928

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

Similar topics

1
19187
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
1223
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
4944
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
1534
by: Matt Theule | last post by:
Visual Studio 2002, Crystal Reports.NET I am unable to set the text of a text object in a crystal reports report. I have found lots of examples for doing this, and what I have does not throw any errors or warnings, but in my displayed report, the textobject in question is not being changed. Code: crReport1 Rpt = new crReport1 (); TextObject to = (TextObject) Rpt.ReportDefinition.
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
17641
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
1966
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
9685
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
9537
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
10469
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...
0
10246
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
10209
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
9066
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
7560
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
6803
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();...
3
2934
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.