PC Review


Reply
Thread Tools Rate Thread

Date Format problem in crystal's ParameterFieldDefinition

 
 
Jonathan Woods
Guest
Posts: n/a
 
      8th Feb 2005
Hi there,

The following code for Crystal Reprot is OKay under the culture(En-US).

ParameterFieldDefinition myDef;
SCRPrintJob myPrintJob=new SCRPrintJob();
ParameterFieldDefinitions crParamDefs=new
ParameterFieldDefinitions(myPrintJob);
ParameterValues crParamValues=new ParameterValues();
ParameterDiscreteValue crParamDiscreteValue=new
ParameterDiscreteValue();

crParamDiscreteValue.Value=this.AccountDateFrom;//It is a value from DT
picker
crParamDefs=r_GLActivity.DataDefinition.ParameterFields;
myDef=crParamDefs["DateFrom"];
//myDef.ApplyMinMaxValues(frmMain.system.MinDate,frmMain.system.MaxDate);
crParamValues=myDef.CurrentValues;
crParamValues.Add(crParamDiscreteValue);
myDef.ApplyCurrentValues(crParamValues);//<-- Following Err Msg appear
in there
----------------------
When I change some regional options,it behaved strange manner.
----------------------
An unhandled exception of type
'CrystalDecisions.CrystalReports.Engine.ParameterFieldException'
occurred in crystaldecisions.crystalreports.engine.dll
Additional Info:
Invalid parameter value: exceeds the Min or Max
or conflicts with existing value or edit mask
---------------------
I've already tested Parameter Options in rpt file and cultureInfo.
But it does not work
When I trace the date value, there is no different as the value it
works.
Right now! I've no idea how to handle that.

Thanks in advance for kind reponse.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem sending Crystal report (HTML format) via MAPI Bill Nguyen Microsoft VB .NET 0 23rd May 2006 05:10 PM
[Newbie UK Date problem] Ways atround this UK date format localisation/SQLselection issue? DC Microsoft ASP .NET 5 1st Jul 2005 10:35 PM
[Crystal report] Paper format problem Thierry Lefevre Microsoft C# .NET 0 30th Mar 2005 04:15 PM
Crystal Number Format Problem. John H. Microsoft Dot NET 3 19th Mar 2005 02:23 PM
Date format when passing to crystal reports John Smith Microsoft Dot NET 0 30th Sep 2004 04:26 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:16 PM.