use dll for detect language for textbox and change direction

Stimulsoft Reports.NET discussion
Post Reply
moh2000
Posts: 10
Joined: Tue Mar 15, 2016 2:51 pm

use dll for detect language for textbox and change direction

Post by moh2000 »

hi
i want use "DialogueMaster.Babel.dll" inside report to detect a cell language and change direction of that cell to 'right to left' if required
is it possible?
thanks
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: use dll for detect language for textbox and change direc

Post by HighAley »

Hello.

You could add the assembly to the Reference Assemblies of the report and use it in the report.

Thank you.
moh2000
Posts: 10
Joined: Tue Mar 15, 2016 2:51 pm

Re: use dll for detect language for textbox and change direc

Post by moh2000 »

tnx
i know how to add reference to report but i don't know how to use it .
could you please guide mo to right direction?
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Re: use dll for detect language for textbox and change direc

Post by Edward »

Hi Moh2000,

Please check the video on using the function from the Referenced Assemblies.

https://www.youtube.com/watch?v=TEYuQmia9IY

The textbox has got the RightToLeft property: https://www.stimulsoft.com/en/documenta ... ponent.htm
And you can set this property depending on the language for the text component (DataMySQLSource_CategoryName) in the BeginRender event handler of the report component as follows:
DataMySQLSource_CategoryName.RightToLeft = false;
DynamicRightToLeft.PNG
DynamicRightToLeft.PNG (75.45 KiB) Viewed 1877 times
Thank you,
Edward
Post Reply