Solved

language depending code text in crystal report

Posted on 2000-03-14
5
580 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

760 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

21 Experts available now in Live!

Get 1:1 Help Now