473,467 Members | 1,565 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Date Format problem in crystal's ParameterFieldDefinition

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.ParameterF ields;
myDef=crParamDefs["DateFrom"];
//myDef.ApplyMinMaxValues(frmMain.system.MinDate,frm Main.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.ParameterF ieldException'
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.

Nov 16 '05 #1
0 2564

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

Similar topics

0
by: John Smith | last post by:
I'm passing two date parameters into a crystal report but it won't let me input anythign other than mm/dd/yy. What I want to put in is dd/mm/yy. Here is my code: Dim cr As New cleaningHistory ...
9
by: Robert Schuldenfrei | last post by:
Hello NG, After a bit of a wait my bookstore, SoftPro of Waltham, MA, got in the Brian Bischof book: Crystal Reports .NET Programming. I have read a few books on CR, but I am very new to it,...
1
by: Sunil Sabir | last post by:
Dear All, I am quite new to crystal reports.Net.I have made a web Form with a drop down box in it. I load 2 values in the drop down box as follows in Form Load event. ...
3
by: kenneth xg | last post by:
Hi, I have problem on passing parameters to subreports' stored procedures which require parameters, from an asp.net web form. I ve tried to use the stored procedures on the main report it...
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,...
6
by: Helen | last post by:
I have an array being passed as a parameter to Crystal 9 (using vb .net in VS 2002). The listbox containing the dataset output at runtime shows DateTime format, but I want to only show mm/dd/yyyy...
0
by: paul | last post by:
Hello, I have recently upgraded to VB .net 2005 and a Crystal report that before did not use to prompt for its single parameter now does so. I have been writing the parameter value to the report...
0
by: =?Utf-8?B?QmFkaXM=?= | last post by:
Hi, I'm using this code to run a crystal report and export it to pdf, and when running it it in debug mode it working fine, but from the browser it's fails to run telling me that the Crystal...
0
by: mknoll217 | last post by:
Hello. I have been trying to log onto two databases at run time for a crystal report. I have tried both the crystal report viewer and the report document object viewer. I have no figured out a way 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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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
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: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.