Avoid a page to be printed

Stimulsoft Reports.NET discussion
Post Reply
user_81
Posts: 3
Joined: Fri Sep 14, 2012 1:40 pm

Avoid a page to be printed

Post by user_81 »

Hi all,

Is there a way to avoid a page to be printed? For example: my datasource contains a list of rows, and only rows with variable1 set to 1 should be printed, the other ones (variable1 set to 0) should be skipped. So kind of like set a condition

if(variable1 = 0) then
page.skip;

to some event.

Is there any chance to do this?

Thanks for your answers in advance.

Greets
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Avoid a page to be printed

Post by HighAley »

Hello.

Could you specify do these rows should be in the report but shouldn't be printed or this rows shouldn't be in report at all?
You could set the condition property of the data band.

Thank you.
user_81
Posts: 3
Joined: Fri Sep 14, 2012 1:40 pm

Re: Avoid a page to be printed

Post by user_81 »

Hello Aleksey

Thanks for your quick answer. These rows should't be in the report at all. The problem is, that I cannot influence the rows or the dataset. It's given to the report by the application, which we cannot change. Setting a condition to the databand would still print the header or footer of the report, right?

Thank you.
Mandy
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Avoid a page to be printed

Post by HighAley »

Hello, Mandy.
user_81 wrote:Setting a condition to the databand would still print the header or footer of the report, right?
It depends of the Print if Empty property.
Could you specify which version of our product are you using?

Thank you.
user_81
Posts: 3
Joined: Fri Sep 14, 2012 1:40 pm

Re: Avoid a page to be printed

Post by user_81 »

Hello Aleksey

I think we have a special Version from our software provider. It says "2012.2.1310".

On the data band I've got a "Print if Detail Empty" property. The data band itself contains nothing, but it's got a few child bands. So I tried to put in a textfield in the data band with content

Code: Select all

{IIF(variable1 >0), "Text", "")}
The data band is empty, wenn variable1 is 0. Then I set the property "Print If Detail Empty" to true, but the page is still printed.

Any other ideas?

Thanks,
mandy
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Avoid a page to be printed

Post by HighAley »

Hello.

I am sorry if my reply was crude.
However, I would like to clarify our position. According to our support policy the customers of our customers are not our customers.
For example, a company purchases our product to integrate into the application. Then the company sells their application to a customer. The customer finds a problem. He/she sends a bug report to the manufacturer who is our customer. If the issue is related with our product the manufacturer who is our customer sends the report to us. We fix it. Why we follow such rules of tech support? Because the number of customers is many many thousands and this will slow down work of our support team with registered users. In addition we do not know how the customer uses our product in their application and we do not have to learn the product he/she created.

Thank you.
Post Reply