.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old January 8th, 2004, 12:08 PM
kunta kunta is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 1 kunta User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy Crystal Reports for VS.NET Globalization

Is it possible to apply somehow the .NET CultureInfo to a Crystal Reports report? The user can change the .NET culture in my ASP.NET application, and I format the dates and numeric data in my web forms according to the chosen culture. But in Crystal Reports I can only apply the current system culture (from the regional settings of the account under which the IIS is running), or fix a custom format, but this is then fixed forever. Any idea?

Reply With Quote
  #2  
Old March 23rd, 2010, 02:52 PM
sheir sheir is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2010
Location: Ottawa, Canada
Posts: 1 sheir User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m
Reputation Power: 0
ReportClientDocument xxxLocaleID properties

If you can find out which culture user selected (ie fr-CA) then you can add the following code to your ReportDocument to work in that culture.

Example:
//Locale must be set BEFORE report is opened
if (this.IsEnglish)
{
ReportDoc.ReportClientDocument.PreferredViewingLoc aleID =
CrystalDecisions.ReportAppServer.DataDefModel.CeLo cale.ceLocaleEnglishCanada;
ReportDoc.ReportClientDocument.LocaleID =
CrystalDecisions.ReportAppServer.DataDefModel.CeLo cale.ceLocaleEnglishCanada;
ReportDoc.ReportClientDocument.ProductLocaleID =
CrystalDecisions.ReportAppServer.DataDefModel.CeLo cale.ceLocaleEnglishCanada;
}
else
{
ReportDoc.ReportClientDocument.PreferredViewingLoc aleID =
CrystalDecisions.ReportAppServer.DataDefModel.CeLo cale.ceLocaleFrenchCanada;
ReportDoc.ReportClientDocument.LocaleID =
CrystalDecisions.ReportAppServer.DataDefModel.CeLo cale.ceLocaleFrenchCanada;
ReportDoc.ReportClientDocument.ProductLocaleID =
CrystalDecisions.ReportAppServer.DataDefModel.CeLo cale.ceLocaleFrenchCanada;
}

//Load the report from file path
ReportDoc.Load(reportPath.ToString());

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgramming.NET Development > Crystal Reports for VS.NET Globalization


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap