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

CrystalDecisions.CrystalReports.Engine.ParameterFi eldCurrentValueException: need help

Hi Friends,
I am building the dataset programmatically by calling the stored proc
by passing a parameter and i am getting the data into the dataset. As a

test when i bind this dataset to a grid i see the data in the front. So

my dataset is loaded with the data.
My actual task is to bring up the Crystal Report using the dataset
thats being loaded with the stored proc as explained above.
Now comming to my actual problem below is exactly what i am doing in my

page_load method. I am not sure the way i am trying to add parameters
to the report but below is my code
*************************************** page load code
**************************************
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
Dim frmDate As String = Request.QueryString("frmDate").ToString

Dim rpt As New InspectorPayReport
Dim ParameterField1 As New
CrystalDecisions.Shared.ParameterField
Dim ParamterFields As New
CrystalDecisions.Shared.ParameterFields
Dim ParamterDescreteValue1 As New
CrystalDecisions.Shared.ParameterDiscreteValue
ParameterField1.ParameterFieldName = "Reference"
ParamterDescreteValue1.Value = frmDate
ParameterField1.CurrentValues.Add(ParamterDescrete Value1)
ParamterFields.Add(ParameterField1)
InspectPayReportViewer.ParameterFieldInfo = ParamterFields
Dim getInspectorPayReport As Invoicing_GMAC_US_BL = New
Invoicing_GMAC_US_BL
Dim ds As DataSet =
getInspectorPayReport.GetInvoicingReport(frmDate)
rpt.SetDataSource(ds)
InspectPayReportViewer.ReportSource = rpt
End Sub
************************************************** ***End of the page
load*********************
But its throwing an exception as in the subject line .
Exception Details:
CrystalDecisions.CrystalReports.Engine.ParameterFi eldCurrentValueException:

Missing parameter field current value.
Could some one please help me if you had come across with the same
situation?
Thanks
-L

Jan 18 '06 #1
1 2249
I think you need to convert frmDate to a DateTime value from a string before
passing it to the Crystal Report.
--
Christopher A. Reed
"The oxen are slow, but the earth is patient."

"Learner" <pr****@gmail.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
Hi Friends,
I am building the dataset programmatically by calling the stored proc
by passing a parameter and i am getting the data into the dataset. As a

test when i bind this dataset to a grid i see the data in the front. So

my dataset is loaded with the data.
My actual task is to bring up the Crystal Report using the dataset
thats being loaded with the stored proc as explained above.
Now comming to my actual problem below is exactly what i am doing in my

page_load method. I am not sure the way i am trying to add parameters
to the report but below is my code
*************************************** page load code
**************************************
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
Dim frmDate As String = Request.QueryString("frmDate").ToString

Dim rpt As New InspectorPayReport
Dim ParameterField1 As New
CrystalDecisions.Shared.ParameterField
Dim ParamterFields As New
CrystalDecisions.Shared.ParameterFields
Dim ParamterDescreteValue1 As New
CrystalDecisions.Shared.ParameterDiscreteValue
ParameterField1.ParameterFieldName = "Reference"
ParamterDescreteValue1.Value = frmDate
ParameterField1.CurrentValues.Add(ParamterDescrete Value1)
ParamterFields.Add(ParameterField1)
InspectPayReportViewer.ParameterFieldInfo = ParamterFields
Dim getInspectorPayReport As Invoicing_GMAC_US_BL = New
Invoicing_GMAC_US_BL
Dim ds As DataSet =
getInspectorPayReport.GetInvoicingReport(frmDate)
rpt.SetDataSource(ds)
InspectPayReportViewer.ReportSource = rpt
End Sub
************************************************** ***End of the page
load*********************
But its throwing an exception as in the subject line .
Exception Details:
CrystalDecisions.CrystalReports.Engine.ParameterFi eldCurrentValueException:

Missing parameter field current value.
Could some one please help me if you had come across with the same
situation?
Thanks
-L

Jan 20 '06 #2

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

Similar topics

0
by: Stijn Lambert | last post by:
Hi all, I am having some problems with Crystal Reports 9 for Visual Studio .NET ... I have a multithreaded application that prints reports in several threads (based upon incoming requests on a...
4
by: anannj | last post by:
Hi everyone, I have a Crystal Report with a subreport in a windows application, which is to be exported to the pdf file. I followed the instructions on...
2
by: Volkan Karabođa | last post by:
I have an aspx that contains a report prepared with crystal report, when I try to run myapp. on another server which has no crystal report tool installed on it. I receive following error code even...
0
by: Susil Patro | last post by:
Hi all, I have installed Visual Studio dot net version 2003, in my machine. I opened a new project for developing an application related to crystal reports. I got the following error, while I...
3
by: Nancy. | last post by:
It seems that I can not be able to display a crystal report with the crystal viewer in a web application. However, in Windows Application I do not have this kind of problems. In a Web form, I...
0
by: Alixx Skevington | last post by:
OK, I am confused here, so I hope that somebody out there can help me out. I am trying to run a report allows me to choose the report and then change the logon info for it. Noiw before you say...
3
by: Lorenc | last post by:
Is anybody experiencing the following error when trying to export a crystal report to a pdf? This error happens randomly. ------------------------------------------------------------------------...
0
by: Dipen | last post by:
Hello All, I am using crystal report in my application. Everything is right but i end up with the following error. Failed to open a rowset. Description: An unhandled exception occurred during...
0
by: PrakashN | last post by:
Hi everyone, I have a Crystal Report with a subreport in a windows application, which is to be exported to the pdf file. I followed the instructions on...
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:
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,...
1
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...
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.