Skip to Content
author's profile photo Former Member
Former Member

Crystal Reports localization issue


I am using Crystal Reports for .NET version 2005. Also, I am utilizing SQL Server 2005 as my database server. The problem is when I deploy applications in Spanish countries (maybe others, but did not try yet). The problem happens when dates are passed to SQL Server 2005, but only through Crystal Report engine.

I guess the question is if there is special need to localize crystal report setup?

Thanks in advance

Amer Gerzic

Infinity Software Solutions

Add comment
10|10000 characters needed characters exceeded

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 20, 2008 at 10:08 PM

    Hi, Amer;

    What behaviour are you expecting? If you have the report's database fields set to use the System Default values, then the report will change depending on where you are running the report.

    Is this a web or windows based application, and what is the verison of Crystal Reports?

    Best Regards,


    Add comment
    10|10000 characters needed characters exceeded

    • Crystal Reports allows you to assign any object as the value of a DiscreteParameterValue or RangedParameterValue. What are you actually setting for the Value property? I normally pass a Date or DateTime object instead of a string to avoid this confusion. Please supply code.

  • author's profile photo Former Member
    Former Member
    Posted on Oct 23, 2008 at 12:52 PM


    Thanks a lot for reply!

    Here is the code that I use:

                        MachineProductionReport report = new MachineProductionReport();
                        ParameterDiscreteValue discreteValue1 = new ParameterDiscreteValue();
                        discreteValue1.Value = dlg.MachineID; <- this has type String
                        ParameterDiscreteValue discreteValue2 = new ParameterDiscreteValue();
                        discreteValue2.Value = dlg.StartDate; <- this has type DateTime
                        ParameterDiscreteValue discreteValue3 = new ParameterDiscreteValue();
                        discreteValue3.Value = dlg.EndDate; // <- this has type DateTime
                        MainReportViewer.ReportSource = report;

    The issue is that it works fine in US, but not in Chile ... Everything else works though (passing string, int, etc.)

    Thanks in advance!


    Add comment
    10|10000 characters needed characters exceeded