Expand my Community achievements bar.

SOLVED

Layout is still prints without content

Avatar

Level 2

I am trying to make a page not printable - I changed the subform to be relevant = "-print" but the page layout still prints a blank page.

Thanks

1 Accepted Solution

Avatar

Correct answer by
Level 10

OK,

I think I am with you...

It looks like the main problem is with the Pagination of the following pages. The default Pagination place is "Top of Next Page", if you set this instead to "Following Previous" then it will close up the form if the checkbox is ticked (not printable).

I tried the relevant method in the exit event of the checkbox (I had some difficulty with this):

if (this.rawValue == 0)  //unchecked visible and printable

{

     form1.page1.presence = "visible";

     form1.page1.relevant = "+print";

}

else  //checked visible but not printable

{

     form1.page1.presence = "visible";

     form1.page1.relevant = "-print";

}         

I had better sucess with the pre-print event of the checkbox:

if (this.rawValue == 0)  //unchecked visible and printable
{
     form1.page1.presence = "visible";
}

else
{
     form1.page1.presence = "hidden";
}

Then in the post-print event of the checkbox:

form1.page1.presence = "visible";

Hope that helps,

Niall

View solution in original post

3 Replies

Avatar

Level 10

Hi,

I think that you can achieve this in a couple of ways:

(1) on a pre-print event set the page presence to "hidden" (not "invisibile") and then in the post-print event set the page presence back to "visible".

(2) In version 8.2 of LC Designer you can set the presence of the page to "Visible (Screen Only)" in the Object / Subform pane. (I am not sure when this feature became available in earlier versions of LC Designer). Note this solution is only backward compliant in Acrobat to version 8 and above.

Hope that helsp,

Niall

Avatar

Level 2

Hi Niall,

The page i am refering to has the following functionality:

When the form opens it is initially Hidden

It is unlocked and then the page becomes visible (Visible - Screen Only)

There is a checkbox that allows the page to be printable (initially - it should be Visible - Sceen Only)

So when the box is unchecked it should be printable (Visible)

But when I try to make it just not printable it doesn't work.. there is a blank page

Avatar

Correct answer by
Level 10

OK,

I think I am with you...

It looks like the main problem is with the Pagination of the following pages. The default Pagination place is "Top of Next Page", if you set this instead to "Following Previous" then it will close up the form if the checkbox is ticked (not printable).

I tried the relevant method in the exit event of the checkbox (I had some difficulty with this):

if (this.rawValue == 0)  //unchecked visible and printable

{

     form1.page1.presence = "visible";

     form1.page1.relevant = "+print";

}

else  //checked visible but not printable

{

     form1.page1.presence = "visible";

     form1.page1.relevant = "-print";

}         

I had better sucess with the pre-print event of the checkbox:

if (this.rawValue == 0)  //unchecked visible and printable
{
     form1.page1.presence = "visible";
}

else
{
     form1.page1.presence = "hidden";
}

Then in the post-print event of the checkbox:

form1.page1.presence = "visible";

Hope that helps,

Niall