473,563 Members | 2,897 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:
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.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 1975

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

Similar topics

0
1696
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..... ...
0
1867
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...
1
3136
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...
0
1445
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...
3
2426
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,
10
19130
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. ...
2
1858
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);...
6
4881
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: ...
4
3291
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...
0
7583
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...
0
8106
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...
1
7642
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...
0
7950
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...
0
6255
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...
0
5213
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...
1
2082
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
1
1200
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
924
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...

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.