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

using crystal reports with parameters

DLT
I have written a VB.NET application that contains several
crystal reports. I have created the reports with
parameters and am passing them fine into the report the
first time. But, if I change the values of the parameters
and try to generate the reports again, I am getting
prompted by Crystal reports to enter the discrete values.
Here's part of my code... It is executed when the user
selects the report and clicks a button. I don't understand
why I don't get prompted the first time, but do all
subsequent times:

Dim pField As New ParameterField()
Dim pParms As New ParameterFields()
Dim discreteVal As New ParameterDiscreteValue()

pField.ParameterFieldName = "beginDate"
discreteVal.Value = Convert_PC_Date(txtBeginDate.Text)
pField.CurrentValues.Add(discreteVal)
pParms.Add(pField)

pField = New ParameterField()
discreteVal = New ParameterDiscreteValue()
pField.ParameterFieldName = "endDate"
discreteVal.Value = Convert_PC_Date(txtEndDate.Text)
pField.CurrentValues.Add(discreteVal)

pParms.Add(pField)
crViewer.ParameterFieldInfo = pParms
crViewer.ReportSource = New BalanceYTD()

Nov 12 '05 #1
0 764

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

Similar topics

0
by: DLT | last post by:
I have written a VB.NET application that contains several crystal reports. I have created the reports with parameters and am passing them fine into the report the first time. But, if I change the...
0
by: Aaron | last post by:
The following code works fine when previewing a Crystal report using ASP, EXCEPT when it gets to a report using a SubReport and its associated parameters. The whole report just comes up blank with...
0
by: Tim Jones | last post by:
Hey all, I am trying to try get a crytal report running properly. A "Hello World" report that does not add criteria to the record selection formula of the report (either in the development tool,...
10
by: Joriz | last post by:
Obviously im new with ms access..so my basic question is how do i run crystal reports in my ADP. I also pass parameters to cyrstal reports. Please help! thanks in advance
2
by: Rod | last post by:
We've got an old VB6 application we wrote years ago, that we're working on converting parts of, to an ASP.NET application. So far, the work is going well. Now I'm looking at trying to convert...
3
by: Nancy | last post by:
I have the following scenario. I have some Crystal Reports that were created outside the .NET Visual Studio. These reports were designed to enter date parameters. I have developed a ASP.NET app...
0
by: Linda W. | last post by:
Hi, I would appreciate any insight into the following issue.. I have an asp.net application with crystal reports being displayed.. All works fine from my IDE & I am trying to move the app to a...
6
by: Smish | last post by:
hey all, I am passing parameters through code to a stored procedure in both windows application (using c# and sql server & crystal reports)and web application(using asp.net & sql server & crystal...
2
by: nguyenmiket | last post by:
I have created a crystal report in XI that uses a stored procedure with two date parameters. When i run it in Crystal reports it prompts me for the dates. When i put it in a view in a .aspx page,...
7
by: Jlo | last post by:
Hi, I have a c# winforms application. When I call the report file, it shows me all the records in the table. How can I make it to call only a particular range. i have the following code...
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
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...
0
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,...
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
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.