cancel
Showing results for 
Search instead for 
Did you mean: 

print atomatically pdf

Former Member
0 Kudos

Hi everyone,

I want my PDF to be automatically print when the user open it.

I tried to put the following code in the event "enter" and "initialize", but nothing happened :

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

Can someone help ?

Thanks.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

You have to set it automatically :

Or you can set a button Formular print. The Formular must be an interactive!

data.Test.DruckenSchaltfläche1::click - (JavaScript, client)

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

Hope this helps!