Page 2 of 2

Re: Variable Initialization

Posted: Thu Sep 26, 2013 1:43 pm
by HighAley
Hello, Daniel.
Daniel Schmitz wrote:I tried to set FullTrust = false, but now the report don't load any of my data.
Did your report get data before?
Daniel Schmitz wrote:I've also tried to use the Reset Page Number property in the AfterPrint event of my PageHeaderBand1, with a text displaying the PageNumber in it:

Code: Select all

if(PageNumber == 10)
{
    PageHeaderBand1.ResetPageNumber = true;
}
else
{
    PageHeaderBand1.ResetPageNumber = false;
}
But for some reason, PageNumber == 10 it's getting true when my text is displying 8.
Is there something wrong?
Please, send us your report template with sample data for analysis.

Thank you.

Re: Variable Initialization

Posted: Mon Sep 30, 2013 1:59 pm
by Daniel Schmitz
Hello.
Did your report get data before?
Yes, it did.
I've tested in your sample codes too, which loads it's data from a XML, and it also didn't bring the data to the report setting "FullTrust = false".
Please, send us your report template with sample data for analysis.
This one I've tested in your sample codes too, trying to use that code in the BeforePrint event of either Page and PageHeaderBand. None of them had worked.

If you could send me a very simple exemple of how I reset the PageNumber after the 10th page, I would be very glad.

Thanks.

Re: Variable Initialization

Posted: Wed Oct 02, 2013 12:14 pm
by HighAley
Hello.

We have made some changes in code and now it works right.
ResetPageAfter10.mrt
(25.94 KiB) Downloaded 288 times
Thank you.

Re: Variable Initialization

Posted: Mon Oct 07, 2013 1:32 pm
by Daniel Schmitz
Hello.

Yes, it is working now.
But I still have the problem with initializing a variable with a value from the dictionary.

Thanks.

Re: Variable Initialization

Posted: Tue Oct 08, 2013 6:36 am
by HighAley
Hello, Daniel.
Daniel Schmitz wrote:But I still have the problem with initializing a variable with a value from the dictionary.
Please, try to initialize the variable in the Before Print event of a component. To give you more detailed answer we need to see your report template.

Thank you.