473,378 Members | 1,384 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,378 software developers and data experts.

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 CrystalReportViewer in my page (its ID: Viewer).
2. put ReportDocument component from Toolbox | Components (its Name: Report)
and specified my existing report class (myproject.import.reports.shiporder).
3. in DataBinding of above viewer, I choosed Simple binding and selected
my report.
4. on Page_Load event handler I put "Viewer.DataBind();"

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.DataBind();":

Server Error in '/myproject' Application.

Specified argument was out of the range of valid values. Parameter name:
value
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.ArgumentOutOfRangeException: 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:crystalreportviewer id="Viewer" runat="server"
width="350px" height="50px" accesskey="<%# Report %>" reportsource="<%#
Report %>">
Line 19: </cr:crystalreportviewer>
Line 20: </form>

Source File: ...\myproject\web\import\shiporder.aspx Line: 18

Stack Trace:

[ArgumentOutOfRangeException: Specified argument was out of the range of
valid values.
Parameter name: value]
System.Web.UI.WebControls.WebControl.set_AccessKey (String value) +96
ASP.shiporder_aspx.__DataBindViewer(Object sender, EventArgs e) in
....\myproject\web\import\shiporder.aspx:18
System.Web.UI.Control.OnDataBinding(EventArgs e) +66
System.Web.UI.Control.DataBind() +26
myproject.import.shiporder.Page_Load(Object sender, EventArgs e) in
....\myproject\web\import\shiporder.aspx.cs:61
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +750
What am I doing wrong?
I didn't add any behind code except "Viewer.DataBind();" 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 1960

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

Similar topics

0
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...
0
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...
1
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...
0
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...
3
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...
10
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...
2
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();...
6
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...
4
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:...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...

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.