cancel
Showing results for 
Search instead for 
Did you mean: 

Hiding the layout during printing

srinivasa_raghavachar
Participant
0 Kudos

Hi Experts,

Is there any way to hide the layout during printing? I have developed a PDF form with complex layout. I want our Customers view the form in print preview and see that all the values are correctly aligned within the boxes before printing. But they print this form on a pre-printed paper (which already has the layout) so I want to make sure that only fields which are binded to a data item are printed and not the layout and static texts. Is this possible?

Regards,

Srini.

Accepted Solutions (1)

Accepted Solutions (1)

former_member365727
Active Contributor
0 Kudos

Hi,

Try this code:


<object>.presence = "visible"; //this makes the object visible in the form
<object>.relevant = "-print";    //this object will not be printed

The relevant property indicates whether an object should appear when the form is printed.

&#9679; +print (default for visible objects)

Forces a particular object to appear when the form is printed,

regardless of the object’s presence property setting.

&#9679; -print (default for invisible or hidden objects)

Forces an object not to appear when the form is printed,

regardless of the object’s presence property setting.

Regards

Srikanth

Answers (0)