How to add localization for Viewer and Designer?

Stimulsoft Reports.Silverlight discussion
edusfleck
Posts: 8
Joined: Mon Aug 15, 2011 2:57 pm
Location: Brazil, Rio Grande do Sul

How to add localization for Viewer and Designer?

Post by edusfleck »

Hi guys,

I added this piece of code on my app startup method (Application_Startup) for localize your solution.

Code: Select all

            System.Reflection.Assembly asm = System.Reflection.Assembly.GetExecutingAssembly();
            Stimulsoft.Report.StiConfig.LoadLocalization(asm, "Prowise.Paineis.Client.Silverlight.pt-BR.xml");
            Stimulsoft.Base.Localization.StiLocalization.Load(Stimulsoft.Report.StiConfig.Localizations[0]);
Was smoothly and beautiful. Until I render a report.
When I create a new report, everything works fine.
When I sender this report to WCF to render it, I get this error:

c:\Windows\Temp\revzshjq.0.cs(15,16) : error CS1520: Method must have a return type

The curious part:

IF I open a report from database (that I did before this modification), it renders fine.
What is this? I Need to add localization on WCF too?



Another question:
How to add a StiOracleDatabase to a Silverlight project?
I tried your projects at C:\~programfiles~\Stimulsoft Reports.Ultimate 2011.1 Trial\Adapters but they can't run at Silverlight projects...

Thanks in advance!
Eduardo Fleck
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

How to add localization for Viewer and Designer?

Post by Alex K. »

Hello,
Was smoothly and beautiful. Until I render a report.
When I create a new report, everything works fine.
When I sender this report to WCF to render it, I get this error:
c:\Windows\Temp\revzshjq.0.cs(15,16) : error CS1520: Method must have a return type

The curious part:

IF I open a report from database (that I did before this modification), it renders fine.
What is this? I Need to add localization on WCF too?
Can you please send us a sample project which reproduces the issue.
Another question:
How to add a StiOracleDatabase to a Silverlight project?
I tried your projects at C:\~programfiles~\Stimulsoft Reports.Ultimate 2011.1 Trial\Adapters but they can't run at Silverlight projects...
You can download the data adapter from our site, compile it and add use the following code:
StiOptions.Dictionary.DataAdapters.TryToLoadOracleODPAdapter = true;

Thank you.
edusfleck
Posts: 8
Joined: Mon Aug 15, 2011 2:57 pm
Location: Brazil, Rio Grande do Sul

How to add localization for Viewer and Designer?

Post by edusfleck »

Can you please send us a sample project which reproduces the issue.
I'm doing it right now.
You can download the data adapter from our site, compile it and add use the following code:
StiOptions.Dictionary.DataAdapters.TryToLoadOracleODPAdapter = true;
On your site, just exists a WinsForm Project for Oracle Adapter.
I Can add it only to my WCF project.
The System.Data.OracleClient DLL is not available for Silverlight side (and others DLL's that are used on the project)

I need to add on Silverlight Side a StiOracleDataBase and StiOracleDataSource. (like this view.designer.Report.Dictionary.Databases.Add(new StiSqlDatabase(fonte.ConexaoDesc, fonte.ConexaoDesc, fonte.ConnectionString, false));)
How am I suposed to do that?
edusfleck
Posts: 8
Joined: Mon Aug 15, 2011 2:57 pm
Location: Brazil, Rio Grande do Sul

How to add localization for Viewer and Designer?

Post by edusfleck »

Here's the project: http://www.filesonic.com/file/174189785 ... oftBug.rar

You will probaly need to install RiaServices and RiaServices Toolkit to run http://www.silverlight.net/learn/advanc ... a-services

Execute, open the designer and click on "pré-visualizar"
It will receive a message erro on the toolbar on the bottom

after that, you can see the entire error on the log
folder that you unzipped\StimulsoftBug\StimulsoftBug.Web\log\date\ErrorStimulsoft.txt
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

How to add localization for Viewer and Designer?

Post by Alex K. »

Hello,

We need some additional time to check the issue.

Thank you.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

How to add localization for Viewer and Designer?

Post by Alex K. »

Hello,

1. Please see StimulsoftBug\StimulsoftBug\Designer.xaml.cs in your project you can use the following code:
(You can see the sample WCF project):

#region Configuration
//ServiceReference1.DesignerServiceClient service = new ServiceReference1.DesignerServiceClient();
//service.LoadConfigurationCompleted += new EventHandler(service_LoadConfigurationCompleted);
//service.LoadConfigurationAsync();
#endregion

You need realize it in your code.

2. Need compile Stimulsoft.Report.OracleClient.dll and add it in References on the server.

3. When create StiReport, you can add OracleConnection:
StiOracleDatabase oracleDatabase = new StiOracleDatabase("Connection", "Test");
report.Dictionary.Databases.Add(oracleDatabase);

Then open the window with a list of tables and select the required tables and add them to your report.

Thank you.
Attachments
1282.StimulsoftBug.zip
(8.02 MiB) Downloaded 384 times
edusfleck
Posts: 8
Joined: Mon Aug 15, 2011 2:57 pm
Location: Brazil, Rio Grande do Sul

How to add localization for Viewer and Designer?

Post by edusfleck »

Hello Aleksey,

Thanks for the answer and the patience.

I Didn't find the LoadConfinguration method on the samples (Stimulsoft Reports.Ultimate 2011.1 Trial\Samples)...

Can you show me the code or where to find it?



the oracle issue I will try later ( I tell you if everything went fine)

thanks!
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

How to add localization for Viewer and Designer?

Post by Alex K. »

Hello,

Please check the sample on the following link:
http://www.stimulsoft.com/Downloads/WCF ... s_v1.5.zip

Thank you.
edusfleck
Posts: 8
Joined: Mon Aug 15, 2011 2:57 pm
Location: Brazil, Rio Grande do Sul

How to add localization for Viewer and Designer?

Post by edusfleck »

http://www.stimulsoft.com/Downloads/WCF ... s_v1.5.zip gives me 404 - File or directory not found.

:dumb:
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

How to add localization for Viewer and Designer?

Post by Andrew »

Hello,

I am sorry for inconvenience. This link is already unavailable. Please read the following topic http://stimulsoft.com/ShowNews.aspx?id=1970 and download the WCF samples at http://www.stimulsoft.com/Downloads/WCF ... es.WCF.zip .

Thank you.
Locked