Home Ask Login Register

Developers Planet

Your answer is one click away!

Kevin Kulla February 2016

Print Button not working in LiveCycle Html5 form

I have a pdf form that has been converted to an Html5 form. In the conversion I dragged the print button to the form which generated this code:

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

The problem is that it doesn't do anything when clicked. It did work when it was a PDF form.


Rob McDougall February 2016

So xfa.host.print() is not on the list of methods supported by HTML5 Mobile Forms, however there is a workaround. Try this code:

if ( xfa.host.appType == "HTML 5" )
    xfa.host.print(1, "0", (xfa.host.numPages -1).toString(), 0, 0, 0, 0, 0);

Post Status

Asked in February 2016
Viewed 2,800 times
Voted 4
Answered 1 times


Leave an answer

Quote of the day: live life