473,602 Members | 2,792 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Crystal Report not showing up after setting params.

I have built a report using Crystal Report 8.0, which is set to get its
data from a MS SQL Stored Procedure with 1 Parameter(small datetime). I
can get the report to display in crystal with data, and can execute the
sp in a query and get returned data. However, I can not get the report
to load into the Crystal Report Viewer on the asp.net form.

I am using a modal dialog window(asp.net webform) to pop up and ask
them the parameter for the report, then raising an event passing it
back to the parent form. It then sets all login info, adds the
parameter to the report document, and sets the viewer source but only
the viewer control shows up, no report or data.

Example code using a static value:
ParameterValues pvs = new ParameterValues ();
ParameterDiscre teValue pdv = new ParameterDiscre teValue();
pdv.Value = "5/5/2004";
pvs.Add(pdv);
rpt1.DataDefini tion.ParameterF ields["@BeforeDOS "].ApplyCurrentVa lues(pvs);

// Sets some table login info on all datatables in the report
//
crv1.ReportSour ce = rpt1;

Nov 17 '05 #1
0 1434

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

Similar topics

0
1506
by: murl | last post by:
I have built a crystal report using crystal9.0 that is linked to a stored procedure built in sql2k, which requires 2 parameters beginningdate(smalldatetime),and endingdate(smalldatetime). When the parameters are met in crystal the report shows up correctly with no problems, but when the report is displayed using the crsyatal report viewer in my c# app, the report is not displayed at all after crystal prompts for the parameters. The viewer...
0
458
by: Ori | last post by:
Hi, I create a report (using Crystal report V 9) which using more than one table to retrieve and filter data. This report receiving a single parameter ("CustomerID") and suppose to show information which exist on this customer from several tables in the database. Whenever I'm testing the report through the crystal (I'm using crystal report 9) its work perfect without any problem and I can see all the data that I'm expecting to.
0
353
by: murlbrown | last post by:
I have built a report using Crystal Report 8.0, which is set to get its data from a MS SQL Stored Procedure with 1 Parameter(smalldatetime). I can get the report to display in crystal with data, and can execute the sp in a query and get returned data. However, I can not get the report to load into the Crystal Report Viewer on the asp.net form. I am using a modal dialog window(asp.net webform) to pop up and ask them the parameter for the...
1
2518
by: raf_z | last post by:
Hi, I'm running a website with Asp.NET, and on one of the pages i have a crystal report with 3 user-populated parameters. However, not all params might be selected. Example: Parameters: 1. EmployeeID 2. First Name 3. Last Name
0
1520
by: lewindha | last post by:
Hi all I am new to ASP.Net and Crystal Reports. We have VS.Net 2003 and Crystal 10 where I work. I have successfully been able to view reports in a web page. My problem now is that I have a report that takes two parameters. A clientID parameter(number) and a date parameter(Date type). I set a form that gets the possible values from the DB and places them into drop down lists. When I select the params and click the button, I
19
3867
by: LP | last post by:
I am using (trying to) CR version XI, cascading parameters feature works it asks user to enter params. But if page is resubmitted. It prompts for params again. I did set ReuseParameterValuesOnRefresh="True" in a viewer, but it still doesn't work. Did anyone run into this problem. What's the solution? Please help. Thank you
12
10379
by: Bill Nguyen | last post by:
What's the VB syntax to run the CR report using the following SP? I use CrystalreportViewer and ReportDocument. Thanks Bill Here's the SP in SQLserver 2K: CREATE proc mysp_ReportSubmission @salesdate as varchar(20),
1
4245
by: Soren S. Jorgensen | last post by:
Hi, I've got a Crystal Report that gets some data from a stored procedure and I need to set some params of the proc at runtime. But no matter what I do, I cannot get the report to eat the params - it keeps showing an error that the proc needs to have it's params initialized. Code's something like: ConnectionInfo ci = new ConnectionInfo();
2
2863
by: Franck | last post by:
Ok i have a problem. What do i need to change to make crystal show subreport within subreports ? So i have 3 layer The MainReport Multiple SubReport Attached in the MainReport Multiple SubSubReport Attached in the SubReports Showing the SubReport itself by bypassing the MainReport the SubSubREport are showing
0
7993
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
7920
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
8401
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
8054
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
8268
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
5440
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();...
0
3900
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3944
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2418
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.