Couple of questions

Stimulsoft Reports.NET discussion
Post Reply
DG
Posts: 5
Joined: Fri Aug 04, 2006 2:03 am

Couple of questions

Post by DG »

Hi!

I'm currently evaluating StimulReport.Net for usage in our product and a few questions
have come up.

1. Is is possible to permantly add a custom Assembly to a report via a setting or something?

2. How do I correctly add a decimal variable? When using something like this

Code: Select all

new StiVariable("Beleg", "GesamtbetragBrutto", typeof(decimal), belegDummy.BelegbetragBrutto.ToString(), false));
the designer generates this code which obviously doesn't work:

Code: Select all

this.GesamtbetragBrutto = 0,00;
3. I've looked at the globalization example. As the reports will be designed by our customers in most cases, the approach in
the example is not possible. What would be the easiest way to let a user localize a report?

Regards

Dennis
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Couple of questions

Post by Edward »

DG wrote:Hi!
I'm currently evaluating StimulReport.Net for usage in our product and a few questions
have come up.
1. Is is possible to permantly add a custom Assembly to a report via a setting or something?
Yes it is possible. Please do following steps:
1. Choose "Report" in Report Property Editor.
2. Add reference to your application dll in ReferencedAssemblies property.
3. Add using of your assembly to report code.

Code: Select all

using MyAssembly.MyNamespace;
These steps you can see in FlashTutorial http://www.stimulsoft.com/livedemos/Rep ... ction.html .
DG wrote: 2. How do I correctly add a decimal variable? When using something like this

Code: Select all

new StiVariable("Beleg", "GesamtbetragBrutto", typeof(decimal), belegDummy.BelegbetragBrutto.ToString(), false));
the designer generates this code which obviously doesn't work:

Code: Select all

this.GesamtbetragBrutto = 0,00;
C# want decimal values with dot. Correct your code:

new StiVariable("Beleg", "GesamtbetragBrutto", typeof(decimal), belegDummy.BelegbetragBrutto.ToString().Replace(",", "."), false));

or

new StiVariable("Beleg", "GesamtbetragBrutto", typeof(decimal), string.Empty, false));
DG wrote: 3. I've looked at the globalization example. As the reports will be designed by our customers in most cases, the approach in
the example is not possible. What would be the easiest way to let a user localize a report?

Regards

Dennis
For example you can use string variables in Report Dictionary. For also you can contact us for getting new version of Globalization Manager.
Thanks!
Post Reply