showing and not showing page while printing

Avatar

Avatar
Level 6
neptas
Level 6

Likes

0 likes

Total Posts

259 posts

Correct reply

0 solutions
View profile

Avatar
Level 6
neptas
Level 6

Likes

0 likes

Total Posts

259 posts

Correct reply

0 solutions
View profile
neptas
Level 6

28-07-2008

Hello,



I have a (dynamic) form with two pages. When printing I would like that one page would not print, but after print I want to see both pages on the screen. This page should be the first page of the form, but if it is not possible, it can be the second page.



What the best method to accomplish this?



thank you

Replies

Avatar

Avatar
Boost 1
Level 2
pmcalex
Level 2

Like

1 like

Total Posts

27 posts

Correct reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 2
pmcalex
Level 2

Like

1 like

Total Posts

27 posts

Correct reply

0 solutions
Top badges earned
Boost 1
View profile
pmcalex
Level 2

28-07-2008

One way you could do this would be to hide the page that you do not want to print by using the following code in the prePrint event:

form1.Page1.presence = "hidden";



Then in the postPrint event, make the page visible again:

form1.Page1.presence = "visible";



Hope that helps.

Avatar

Avatar
Level 6
neptas
Level 6

Likes

0 likes

Total Posts

259 posts

Correct reply

0 solutions
View profile

Avatar
Level 6
neptas
Level 6

Likes

0 likes

Total Posts

259 posts

Correct reply

0 solutions
View profile
neptas
Level 6

29-07-2008

Hi,



That will hide all the objects in the page, but the page will print blank. I don´t want to print the page.



I can make a removeInstance (to the second page), but then, after print I would like to have my page back (with the data on the objects). However, I can´t make a addinstance...



Any ideas?



Thank you