Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > Crystal Reports
|
Crystal Reports General discussion about Crystal Reports. For discussions specific to the book Professional Crystal Reports for VS.NET, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Crystal Reports section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 13th, 2003, 01:41 PM
Authorized User
 
Join Date: Jul 2003
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default Passing Parameter but not Export

I passing Parameter to Report but when I export to DOC, PDF .. ERRORS... Why???

 
Old November 16th, 2003, 09:05 PM
Registered User
 
Join Date: Nov 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Posting the errors that you are getting would go a long way in providing the people here more information so they can help you...

How are you passing the parameters to the report?

 
Old November 19th, 2003, 05:56 AM
Authorized User
 
Join Date: Jul 2003
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Server Error in '/report' Application.
--------------------------------------------------------------------------------

Missing parameter field current 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: CrystalDecisions.CrystalReports.Engine.ParameterFi eldCurrentValueException: Missing parameter field current value.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[ParameterFieldCurrentValueException: Missing parameter field current value.]
   .I(String , EngineExceptionErrorID ) +574
   CrystalDecisions.CrystalReports.Engine.FormatEngin e.internalSetReportInfo(RequestContext reqContext) +1293
   CrystalDecisions.CrystalReports.Engine.FormatEngin e.internalGetViewContext(ReportPageRequestContext reqContext, * viewContext) +217
   CrystalDecisions.CrystalReports.Engine.FormatEngin e.ExportToStream(ExportRequestContext reqContext) +184
   CrystalDecisions.ReportSource.LocalReportSourceBas e.ExportToStream(ExportRequestContext reqContext) +115
   CrystalDecisions.Web.ReportAgent.Export(ExportRequ estContext reqContext) +91
   CrystalDecisions.Web..)(ExportFormatType K, Boolean L, Int32 M, Int32 N) +575
   CrystalDecisions.Web..$(CommandEventArgs E) +522
   CrystalDecisions.Web..OnBubbleEvent(Object source, EventArgs e) +929
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +26
   CrystalDecisions.Web. .RaisePostBackEvent(String eventArgument) +43
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler sourceControl, String eventArgument) +18
   System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +138
   System.Web.UI.Page.ProcessRequestMain() +1277

 Errors
View is no problem but Export errors

 
Old December 19th, 2003, 02:25 PM
Registered User
 
Join Date: Dec 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

guys i am having the same problem, I can view the report when i am passing parameter from C# code. but when i try to export it i get the same error "Missing parameter field current value" if you guys figure it could you please let me know
Thanks
Amit

 
Old January 7th, 2004, 10:35 AM
Registered User
 
Join Date: Jan 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Here solution:

crReportDocument.SetParameterValue("Name parameter",value)

 
Old January 17th, 2004, 01:41 AM
Registered User
 
Join Date: Jan 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Guys i Am facing the same problem while exporting.

Can u clear the following line

crReportDocument.SetParameterValue("Name parameter",value)

because my Reportdocument does not contain the SetParameterValue Method.


Thanks and Regards,

Amjad

 
Old January 18th, 2004, 04:32 AM
Registered User
 
Join Date: Jan 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Guys I am using Visual Studio.NET 2002.
I am generating a report using a Stored Procedure which accepts Parameters.
But i am getting Error
"Missing Field Current Value"

I used crReportDocument.SetParameterValue("Name parameter",value) still getting the same error.

So i downloaded Service Pack 1 from CrystalDecisions site for Visual Studio.NET 2002 but stilll getting the same Error
"Missing Field Current Value"


Can anyone help me regarding this?
Thanx in advance


 
Old January 27th, 2004, 11:39 AM
Registered User
 
Join Date: Jan 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by amjadpathan
 Guys I am using Visual Studio.NET 2002.
I am generating a report using a Stored Procedure which accepts Parameters.
But i am getting Error
"Missing Field Current Value"

I used crReportDocument.SetParameterValue("Name parameter",value) still getting the same error.

So i downloaded Service Pack 1 from CrystalDecisions site for Visual Studio.NET 2002 but stilll getting the same Error
"Missing Field Current Value"


Can anyone help me regarding this?
Thanx in advance


 
Old January 27th, 2004, 11:45 AM
Registered User
 
Join Date: Jan 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sorry about that last post. Sometimes s*** happens.

Anyway, I'm using VS.Net 2003 and am getting the same problem as below. I also downloaded SP1 for 2003 which did not fix the problem. I tried setting the parameter as follows:

objReport.SetParameterValue("@client_no", CType(strClientNo, Integer))

This did not fix the problem either. Neither did using the .ApplyCurrentValues, .ApplyCurrentDefaults work.

So any other thoughts would be very welcome.

thanks


Quote:
quote:Originally posted by dickeddy
 
Quote:
quote:Originally posted by amjadpathan
Quote:
 Guys I am using Visual Studio.NET 2002.
I am generating a report using a Stored Procedure which accepts Parameters.
But i am getting Error
"Missing Field Current Value"

I used crReportDocument.SetParameterValue("Name parameter",value) still getting the same error.

So i downloaded Service Pack 1 from CrystalDecisions site for Visual Studio.NET 2002 but stilll getting the same Error
"Missing Field Current Value"


Can anyone help me regarding this?
Thanx in advance


 
Old February 2nd, 2004, 08:46 AM
Registered User
 
Join Date: Feb 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hope that the following C# code does help

myReport = new ReportDocument();
myReport.Load("xxx.rpt");

ParameterValues myparameterValues = new ParameterValues();
ParameterDiscreteValue myparamDiscreteValue = new ParameterDiscreteValue();
paramDiscreteValue.Value = txtUserID.Text;
myparameterValues.Add(myparamDiscreteValue);
myReport.DataDefinition.ParameterFields["user_id"].ApplyCurrentValues(myparameterValues);







Similar Threads
Thread Thread Starter Forum Replies Last Post
passing parameter sarah lee ASP.NET 1.0 and 1.1 Basics 3 September 5th, 2006 04:29 PM
how to Export in PDF Format with Parameter fields navid Crystal Reports 2 February 2nd, 2006 04:06 PM
passing parameter.. suzila VB.NET 2002/2003 Basics 7 May 17th, 2004 08:28 PM
Parameter passing psambor Beginning PHP 0 September 17th, 2003 01:47 AM
Passing Parameter tgopal Javascript 3 August 7th, 2003 07:54 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.