Page 1 of 1

PrintOn-Property of Overlay-Band does not work properly in version 2009.3.518.0

Posted: Thu Nov 12, 2009 6:55 am
by munich
Hello,

I have a problem with the property “print on” of the overlay band.

Here are the steps to reproduce the problem:

1. Start Designer having data in the data dictionary
2. Add data band to the report
3. Assign data source to the data band
4. Add a component showing data of data source
5. Ensure that at least three pages are rendered in preview
6. Add overlay band to report
7. Set “print on” property of overlay band to “Except first page”
8. Add e.g. a shape to the overlay band
9. Open preview and see that the shape is only visible on the third rendered page and on the following pages

Is this a bug or did I anything wrong?

Kind regards
munich

PrintOn-Property of Overlay-Band does not work properly in version 2009.3.518.0

Posted: Thu Nov 12, 2009 5:36 pm
by Edward
Hi

Thank you for the bug report and exact steps required for reproducing it.

We will let you know about our progress.

Thank you.

PrintOn-Property of Overlay-Band does not work properly in version 2009.3.518.0

Posted: Fri Nov 13, 2009 3:49 am
by Ivan
Hello,

This is a peculiarity of our program which cannot change on the current moment.
For solving your issue please improve your report template:
- set the PrintOn property of overlay band to AllPages,
- add new condition to this overlay band, and set the properties of condition following way:
-- set the FieldIs property to Expression,
-- in expression field write following code: this.CurrentPrintPage < 1
-- set the ComponentIsEnabled property to false.

Thank you.

PrintOn-Property of Overlay-Band does not work properly in version 2009.3.518.0

Posted: Wed Nov 25, 2009 11:11 am
by munich
Hello Ivan,

the work-around does not work, wenn I have a second (template) page in the report having the same overlay band and shape on. On the first rendered page of the second template page the shape should not appear. But it does.

Is there any other possibility?

Thanks in advance.

Kind regards
munich

PrintOn-Property of Overlay-Band does not work properly in version 2009.3.518.0

Posted: Thu Nov 26, 2009 10:12 am
by Edward
Hi

Please add a variable into Dictionary and in the BeforePrintEvent of the second page in your template add the following code:

if (Variable1 == 0)
Variable1 = this.CurrentPrintPage;

and your condition will look as follows:

this.CurrentPrintPage <= Variable1

Thank you.

PrintOn-Property of Overlay-Band does not work properly in version 2009.3.518.0

Posted: Thu Dec 17, 2009 2:03 am
by munich
Hi Edward,

I solved the problem using Stimulsoft.Report.StiOptions.Engine.GlobalEvents.BeforePrint in my program code. This allowed to solve my requirements for reports having an unlimited number of template pages.

I thank you very much for your help.

Yours
munich

PrintOn-Property of Overlay-Band does not work properly in version 2009.3.518.0

Posted: Thu Dec 17, 2009 5:24 am
by Edward
Hi

Thank you for this feedback.