Variable Initialization

Stimulsoft Reports.WEB discussion
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Variable Initialization

Post 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.
Daniel Schmitz
Posts: 32
Joined: Tue Jul 03, 2012 2:16 pm

Re: Variable Initialization

Post 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.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Variable Initialization

Post 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.
Daniel Schmitz
Posts: 32
Joined: Tue Jul 03, 2012 2:16 pm

Re: Variable Initialization

Post 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.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Variable Initialization

Post 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.
Post Reply