Solved

language depending code text in crystal report

Posted on 2000-03-14
5
581 Views
Last Modified: 2010-05-02
I have an accesstable containing per code and per language the description.
example :
code  language  text
A      E        English text for code A
A      F        French text for code A

Instead of printing the code on my crystal report, i would like to print the text coming from the translation table.
I'm working in access 97.
I could write a UFL in visual basis in the crystal report but i hope there is another solution.
0
Comment
Question by:pce
5 Comments
 
LVL 4

Expert Comment

by:vindevogel
ID: 2616227
You can create a query in your Access table.

You can have a query like "Select * from table ..... where Language = 'E'

In this query you should include the textfield for that code, of course.

You can then base your report on the query. Works just the same for CR.
0
 

Author Comment

by:pce
ID: 2618765
the languagecode is a parameter in CR.  This parameter is passed at the moment of execution.  How do I pass this to the accessquery ?
0
 
LVL 2

Accepted Solution

by:
cero earned 100 total points
ID: 2632302
Well in CR, u can create the report without restrictions. Then when you want to show the report in a especific language, u could use the selectionformula like this

MyCRObject.SelectionFormula = " MyField = '" & MiVarLanguageID & "'"

before showing the report.

0
 
LVL 2

Expert Comment

by:cero
ID: 2632303
Of course this code in Visual Basic
0
 

Expert Comment

by:pnozay
ID: 10223063
Softlang has developped a new tool called "Crystal Translator" designed specifically to translate/localize reports produced by Crystal Report.
Check it out at www.softlang.com
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now