Skip to main content
Participant
April 18, 2020
Answered

Document Will Print Action not working as expected

  • April 18, 2020
  • 2 replies
  • 1410 views

Script in the document "will print" action executes only after opening print dialog box.

Why it doesn't execute before opening print dialog box?

I saw it in a different pdf file (unfortunately can't edit it because of security settings), where when I click print icon from menu item, it validates the form and then it opens print dialog box. But when I try it in my pdf form, it doesn't work.

I want to execute the script before opening the print dialog box. Is there a way to do it? Please help me.

This topic has been closed for replies.
Correct answer Bernd Alheit

Just now, I have checked that pdf document properties and got to know it was developed using Lifecycle Designer.

 

So, we can achieve those actions using Lifecycle designer?


Looks like it is possible with LiveCycle Designer.

2 replies

Bernd Alheit
Community Expert
Community Expert
April 18, 2020

Can you share the other file?

Participant
April 18, 2020

Sorry I can't share the file and I can't edit it because it is signed document. I can share the screenshot for you.

When I click on print icon without filling the form:

 

 

Then another dialog box pops up showing print cancelled.

 

 

Bernd Alheit
Community Expert
Community Expert
April 19, 2020

Was the form created with Livecycle Designer?

try67
Community Expert
Community Expert
April 18, 2020

Because opening the print dialog is not the same as printing the file. The Will Print event only executes when the file is actually printed. This is the expected and correct behavior.

If you did see what you described then it must have been through a button that was added to the document itself, or maybe even to the application, which uses a script to perform the validation and only then opens the Print dialog. It's not possible that it happened through the built-in File - Print command.