Hi all,
I've been working with Stimulsoft for the past month and a half and I've encountered some problems that I've been able to overcome. But since yesterday I have a problem that is driving me nuts.
I have a series of reports where I display the info of an Invoice/Order/etc, and below I display the info of the Lines. In a footer band I show the VAT breakdown as follows:
VAT 1 Value (Amount summed by the lines with VAT 1) VAT 1 Amount
VAT 2 Value (Amount summed by the lines with VAT 2) VAT 2 Amount
For example:
Tax 20% (200 €) 40€
Tax 10% (1000 €) 100€
Thing is I just want to show the amount in brackets if there is more than one tax. In order to do so, I do the following:
1. In the Invoice Databand initialize a variable: "ForTaxBreakdown" = ""; //It is a string instead of a bool because I was getting type errors in the IIF
2. In the Lines Databand I compare the different taxes, and if there is more than one, I get: ForTaxBreakdown = "1";
3. In the VAT Breakdown I use "ForTaxBreakdown" to either show (if it's a "1") or hide (if it's empty, = "") the amount in brackets.
What happens is the following:
1. I initialize the variable and see it's empty.
2. When comparing, I see that the variable is now "1".
3. In this point, and I can't imagine how, the variable value is now 0 again, although no processing has been done since point 2. In fact, 3 is just behind 2.
I am using this exact same processing in 6 or 7 different reports and it works as it should, getting ForTaxBreakdown="1" in point 3.
Can please anyone shed some light about this problem?
Thanks a lot in advance.
Variable changing its value for no apparent reason
Re: Variable changing its value for no apparent reason
Hi All,
I finally fix the report, although all I did was deleting the problematic FooterBand and adding a new one. I've compared both .mrt and I don't see any differences regarding the footers. I would like to know what caused this problems in order to have a deeper understanding of Stimulsoft and how it works.
I'm attaching both reports. In the problematic report the footer is "FooterBand1" and in the correct report that band has been substituted by "FooterBand5".
Thanks in advance,
SergioT.
I finally fix the report, although all I did was deleting the problematic FooterBand and adding a new one. I've compared both .mrt and I don't see any differences regarding the footers. I would like to know what caused this problems in order to have a deeper understanding of Stimulsoft and how it works.
I'm attaching both reports. In the problematic report the footer is "FooterBand1" and in the correct report that band has been substituted by "FooterBand5".
Thanks in advance,
SergioT.
- Attachments
-
- SSHH_IINN_00000100_PurchaseInvoice_New.mrt
- Report not working
- (103.75 KiB) Downloaded 326 times
-
- SSHH_IINN_00000100_PurchaseInvoice_New_Ok.mrt
- Report working OK
- (103.89 KiB) Downloaded 181 times
Re: Variable changing its value for no apparent reason
Hello, Sergio.
We see the difference in the Can Shrink property.
Sorry, it's hard to answer your question without sample data for your report.
Could you send us sample data that will help us to reproduce the issue?
Thank you.
We see the difference in the Can Shrink property.
Sorry, it's hard to answer your question without sample data for your report.
Could you send us sample data that will help us to reproduce the issue?
Thank you.
Re: Variable changing its value for no apparent reason
Unfortunately that won't be possible.HighAley wrote:Hello, Sergio.
We see the difference in the Can Shrink property.
Sorry, it's hard to answer your question without sample data for your report.
Could you send us sample data that will help us to reproduce the issue?
Thank you.
Anyway, thanks for your attention.
Regards.
Re: Variable changing its value for no apparent reason
Hello, Sergio.
We don't need your real data. Just any dummy data that will help us to reproduce the issue.
You could send the data by email.
Let us know if you need our help.
Thank you.
We don't need your real data. Just any dummy data that will help us to reproduce the issue.
You could send the data by email.
Let us know if you need our help.
Thank you.