Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

Need help in implementing the Print button functionality Urgent

Avatar

Level 3

Hi,

We need help in Print button functionality.

We have addinstance functionality for few sections in the form.

The requirement is: By default on the for addinstance sections one instance will be visible on the form and when we take a print each section should repeat as 4 instances on the form and form is breaking into 2 pages.

Problem we are facing is.

When we take a print by Ctrl+P or File-->Print this functionality working fine and by default in Print dialog box Print Range option is All.

But when we take a print by clicking on Print Button on the form it is printing 1 page and by default Print Range is Pages. It should actually show All.

can someone pls help me inthis.

Regards,

Jay

4 Replies

Avatar

Former Community Member

Hi,

Where does you print button reside in your Form when it is breaking into 2 pages ?

Regards--

Chalukya

Avatar

Former Community Member

check if the script on click event of Print Button is correct as below:

xfa.host.print(1, "0", (xfa.host.numPages -1).toString(), 0, 0, 0, 0, 0);

Regards--

Chalukya.  

Avatar

Level 3

Hi Chalukya,

Thank you for the reply..

The print button we have placed on Master page of the form.

We have already tried with the script "xfa.host.print(1, "0", (xfa.host.numPages -1).toString(), 0, 0, 0, 0, 0);".

Regards,

Jay

Avatar

Former Community Member

can u share your form ..

let me give a try ..

Regards--

Chalukya. (rmchalukya@gmail.com)