473,890 Members | 1,450 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Error on binding Crystal report

It's my first project using the Crystal report.
I created a report with the report designer
and linked it to a web form as:
1. put CrystalReportVi ewer in my page (its ID: Viewer).
2. put ReportDocument component from Toolbox | Components (its Name: Report)
and specified my existing report class (myproject.impo rt.reports.ship order).
3. in DataBinding of above viewer, I choosed Simple binding and selected
my report.
4. on Page_Load event handler I put "Viewer.DataBin d();"

My report's data source is SQL stored procedure and it takes 1 parameter.
I thought that on browsing my report page, it will ask for parameter value.
I don't know how, maybe using JavaScript promt or something else.
But my page fails on "Viewer.DataBin d();":

Server Error in '/myproject' Application.

Specified argument was out of the range of valid values. Parameter name:
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.

Exception Details: System.Argument OutOfRangeExcep tion: Specified argument
was out of the range of valid values. Parameter name: value

Source Error:

Line 16: <uc1:menu id="Menu" runat="server"> </uc1:menu>
Line 17: <p><asp:label id="ErrorLbl" runat="server" forecolor="Red"
enableviewstate ="False"></asp:label></p>
Line 18: <cr:crystalrepo rtviewer id="Viewer" runat="server"
width="350px" height="50px" accesskey="<%# Report %>" reportsource="< %#
Report %>">
Line 19: </cr:crystalrepor tviewer>
Line 20: </form>

Source File: ...\myproject\w eb\import\shipo rder.aspx Line: 18

Stack Trace:

[ArgumentOutOfRa ngeException: Specified argument was out of the range of
valid values.
Parameter name: value]
System.Web.UI.W ebControls.WebC ontrol.set_Acce ssKey(String value) +96
ASP.shiporder_a spx.__DataBindV iewer(Object sender, EventArgs e) in
....\myproject\ web\import\ship order.aspx:18
System.Web.UI.C ontrol.OnDataBi nding(EventArgs e) +66
System.Web.UI.C ontrol.DataBind () +26
myproject.impor t.shiporder.Pag e_Load(Object sender, EventArgs e) in
....\myproject\ web\import\ship order.aspx.cs:6 1
System.Web.UI.C ontrol.OnLoad(E ventArgs e) +67
System.Web.UI.C ontrol.LoadRecu rsive() +35
System.Web.UI.P age.ProcessRequ estMain() +750
What am I doing wrong?
I didn't add any behind code except "Viewer.DataBin d();" as it was noted in
the online help.
I think that a database connection information is included within report
file and I have not
to supply connection/dataset at run-time.

Thank you!
P.S. ASP.NET 1.1 & VS2003
May 22 '06 #1
0 1988

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

Similar topics

by: Pushpendra | last post by:
I want to create the crystal report in my VB.net application...the connectivity and creation of dataadapter and dataset is done thru coding...the dataset we get is untyped now how to bind this untyped dataset with crystal report and how the field in my table of dataset can be assign on the crystal report.... If any one can help..... Thanks in advance....
by: Plunaldo | last post by:
Hi All I use a ODBC Connection to Connect to a AS400 System. I created a new DSN in the Windows System. The Databaseaccess is made directly out of the Crystal Report...so the Crystal Report is bound to the DSN i made in my Windowssystem. My Question is...How can i make a deploymentpackage and deploy my stuff on a customer machine with a diffrent DSN...can i specify the DSN somewhere outside Crystal Report to change it to a new one? or do i...
by: saima ashraf | last post by:
Hi, I am trying to sort the data in my crystal report at runtime. The problem is that i can only query the database once and that is at the loading of the report. At that time i fill up my dataset. Afterwards when the sorted data is required, i use the Dataview's sort method and sort the data. This sorted data is perfectly shown in the datagrid. Now i want this data to be shown in my crystal report object too. Its not working!!! Can...
by: raf_z | last post by:
Hi, I think i'm doing something simple, although i may be wrong. I was able to load a Crystal report file up until today, and even now, its only 1 report that's misbehaving. I'll confess that i didn't create the report, it was done by our Crystal guy with Crystal 9 (or 8), all i do is load it using .NET, which, like i said before, worked just fine. Here's the code: //i call this func from Page_Load passing in only the filename
by: Adriano | last post by:
Hello, when I try to print something, either DataGrid or from Crystal Report viever the folowing error message appears and cancels printing: Object reference not set to an instance of an object :(((( Anyone pls help me to solve this problem!!! thanks in advance,
by: Jim Underwood | last post by:
I am having a problem with my web page timng out while retrieving a long runnign report (90-120 seconds. I have tried modifying several settings in various places and cannot get it to run for more than 90 seconds. I am running VS.Net and the app is ASP.Net, written using VB.Net. The app calls an asp.Net web service to retrieve the report. Both the web site and the web service are running locally on my PC. I have tried modifying the...
by: sureshgv | last post by:
SqlConnection cn=new SqlConnection ("User ID=sa;Initial Catalog=usermodule;Data Source=NEW5"); SqlDataAdapter da=new SqlDataAdapter (Application.ToString(),cn); DataSet ds=new DataSet(); da.Fill (ds,"REGISTER,INOUTDETAILS"); CrystalReport1 cr=new CrystalReport1(); cr.SetDataSource(ds.Tables); CrystalReportViewer1.ReportSource=cr; The above statement represents binding data to crystal reports.
by: Miro | last post by:
I can run an exe ( and its install ) i have created on my machine. The exe has a button that populates a dataset and then shoots it to a crystal report. But... Installing the setup.exe on my other pc, and running it I get an error. The Dataset loads properly, but when the button is pushed to view the report I get this error: ************** Exception Text **************
by: Miro | last post by:
<i have also added this reply to the other newsgroup - now that I have realizd ( and assuming ) it is not a localized error directly to vb.> I have found this link on the website: https://www.sdn.sap.com/irj/sdn/businessobjects-downloads ..NET Utility CR 2008 Merge Modules for the .NET Framework ZIP 74.716 Windows English 12.03.2008 and it states:
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...
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,...
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...
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,...
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...
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...
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: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
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.