Avatar

Correct answer by
Level 4

Hello MDawn,

You can write the following script in the "postSubmit" event of the Email button

app.execMenuItem("SaveAs");  // to save the form


xfa.host.print(1, "0", (xfa.host.numPages -1).toString(), 0, 0, 0, 0, 0);
  // to Print the form

Thanks,

Debadas.

View solution in original post