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

two reports with different parameters in a one CrystalReportViewer

1
hi to All....

Can anybody help me?

I want two reports (with two parmeters @p1 and @p2) in one CrystalReportViewer...

But I don't understand my mistake:

Dim prF As New ParameterField
Dim prFs As New ParameterFields
Dim rangeval As New ParameterRangeValue

prF = New ParameterField
prF.Name = "@city_name"

rangeval.StartValue = ListBox1.Items.Item(0) 'parameter @p1
rangeval.EndValue = ListBox1.Items.Item(1) 'parameter @p2

prF.CurrentValues.Add(rangeval)
prFs.Add(prF)
CrystalReportViewer1.ParameterFieldInfo = prFs
CrystalReportViewer1.ReportSource = myCrysReport

Gratitude to all answered
Aug 6 '07 #1
0 1046

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Samuel | last post by:
I'm having a problem with this product. When I was using "Visual Studio.NET 1.0" to develop a project, we had no issues, but now after migrating to "Visual Studio.NET 2003" it does not use the...
0
by: Roberto Carabajal | last post by:
Hello: Please, I would appreciate any idea about this subject. I am working with Visual Studio 2005 and have made a Crystal Reports WebForm , with CrystalReportViewer and ReportSource Controls,...
0
by: Craig Faulkner | last post by:
I have been fighting through my first crystal report in VS2003.NET and have made some headway. Here is what I've done: 1. Created a crystal report in VS2003 from a SQL stored procedure with...
0
by: Henry | last post by:
Using ideas provided by some of you I was able to figure out how to get the names of the parameters fields of a crystal report specified at run time. The code below just basically puts the...
0
by: Dean Sabella | last post by:
Hi, I was trying to run a crystal report in the .net sample application given at: http://support.crystaldecisions.com/communityCS/FilesAndUpdates/ cppnet_win_subreport_basic.exe.asp (I've...
10
by: Adis | last post by:
Asp.Net Visual Studio 2003 SQL Server. Hi, Obtaining Data Based Upon Multiple Selections From a ListBox... I have database in Sqlserver and ListBox (Multiple Selection Mode) in my Visual...
4
by: touf | last post by:
hi, I'm using Crystal reports to generate a simple report in a VB.net windows application, I've defined all my stuffs (accessMDB,query, 2 parameters) in the report design, and it's working fine,...
0
by: Crash | last post by:
Hello everyone, I need help creating an asp page to view a crystal report, which requires that that I change the database connection dynamically. I thought I had this problem licked in CR7 (the...
2
by: Charlie Brown | last post by:
The following code is what I have been using in .net 1.1 for years. Now upgrading to .net2.0 and Crystal reports for vs2005, it no longer works, although as far as i can tell it is still supported....
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: 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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
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,...
0
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...
0
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...

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.