baan_player
19th June 2008, 17:29
Hi All
I have a question regarding report printing in Multiple languages.
Eg. If I am printing Statement of Account report for a range of BPs say BP1 - BP5, and
BP1 language is English an
BP2 is French
BP3 is English
BP4 is English and
BP5 is French... so on
and when my selection range is BP1 - BP5, i want to print Statement of Account of BP1, BP3 and BP4 in English and BP2 and BP5 in French.
Is it possible to do that without changing the selection range i.e just in 1 print click?
Is thr any other option for this??
Because selecting the language in 'Select Device' session for every BP would be very time consuming.
Thanks in Advance
oleska
19th June 2008, 19:15
one of the options is to make your lables dynamic, based on the language of your BP.
Another option is to get device and then pass it to report function in the script and then call report based on the language.
Best regards,
Oleg
baan_player
19th June 2008, 20:20
Thanks a lot Oleg
But can you please elaborate little more the options that you have suggested.
I am not very clear on this.
oleska
19th June 2008, 21:27
dynamic lables:
in report editor instead of lables you use fields. Ex. variable bp.name, in the script you populate bp.name based on the language.
separeate report per language:
use brp commands.
id1 = brp.open( "language 1", "D", 1 )
id2 = brp.open.language( "language 2", "D", 1 )
if language 1
brp.ready( id1 )
else
brp.ready( id2 )
brp.close( id1 )
brp.close( id2 )
I hope it's clear. good luck
SujithKumar
20th June 2008, 07:08
Baan do have multi language support in reports by default
We do that for invoice printing
Have you noticed in the the reports there is a language field??
Thats the clue. I encourage you to check that out....
(Sujith)
jp.aalders
20th June 2008, 16:35
You can even connect the report in different languages to each other. In that case the layouts are linked, modifications in f.i. language 1 will automatically be ported to the other languages ( just compile ). The labels are dynamically.
zardoz
20th June 2008, 16:55
Jp, all you said is valid for Baan IV, but in Baan LN reports are only dinamically connected. You cannot have different layouts for each language, only the labels changes.
You only compile the report. This is valid for all languages.
To have different layout scheme for each language, you have to do different report names...
jp.aalders
20th June 2008, 17:11
I didn't say that layouts can be different when reports in different languages are connected to each other. As you mentioned, only the labels are dynamically in that case. The same goes for Baan IV. Building reports in LN isn't very different from Baan IV.
zardoz
22nd June 2008, 13:12
No, Jp I said that in baan IV report layouts can be different for each language (As you said, the field "link to language" could be filled or not).
In Baan LN this possibility doesn't exists. If you want different layouts for the same report in combination of language you cannot use the same report code.