This is a migrated thread and some comments may be shown as answers.

User defnied function not working

3 Answers 56 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Michael Secosky
Top achievements
Rank 1
Michael Secosky asked on 17 May 2011, 07:51 PM
Hi,

We are using Telerik Reporting 2010 Q3 SP1. Version: 4.2.10.1221.

1. All the telerik reports are in one assembly. We use the Telerik.Reporting.Processing.ReportProcessor to render the report as pdf.
2. We use english and french for localization purposes.

I added a static user defined function to the report class and calling it from the designer via the 'Edit Expression' window. The problem is that the new function is being recognized only on the english (default) language. On the french version the report executes as if the function never existed and calls the older implementation. Is this a known bug? Is there any workaround for this? Let us know.

Let me know if you need any more information.

BTW I am using my managers account to post the question to avoid any licensing questions....

Thanks,
Praveen

3 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 20 May 2011, 12:21 PM
Hello Praveen,

I suspect that you have added the expression to the TextBox that uses the user function while your report Language was English and not a neutral one. Open the report, change the Language property to Default and the TextBox with the expression containing the user function should be empty. Add the desired expression there, save and rebuild the project. Now the expression should be available for all languages that do not explicitly override that value.
As for using your manager's account - you can avoid that if you ask him to add you as licensed developer to this account. More information is available in the following FAQ section.

Kind regards,
Steve
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Michael Secosky
Top achievements
Rank 1
answered on 23 May 2011, 05:23 PM
Hi Steve,

I tried the changing the Language property to default, emptied the textbox and entered the expression again but didn't work. When I manually changed the textbox.text property on the french resource file it started working. On the english resource file it was set properly.

I will ask my manager to add me as a licensed developer to the account.

Thanks,
Praveen
0
Steve
Telerik team
answered on 25 May 2011, 11:45 AM
Hi Praveen,

I've attached a sample runnable project that behaves correctly in several cultures including French and English, so you could compare the differences if needed.

Greetings,
Steve
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Michael Secosky
Top achievements
Rank 1
Answers by
Steve
Telerik team
Michael Secosky
Top achievements
Rank 1
Share this question
or