Acrobat User Community Forums

You are not logged in.     Log in to your AUC account.     Don't have an account? Sign up today

#1 2007-10-02 18:08:55

bfalor
Member
Registered: 2007-08-30
Posts: 0

JavaScript printing problem

The JavaScript related to printing as shown on page 640 of the Adobe XML Form Object Model Reference does not work in Reader 8.0. I think the problem is that in Reader 8 there is a different page range in the Print Dialog Box. The previous version had 2 page range entry boxes - from and to. The new version has only one entry box in which you enter "from - to". Therefore the print JS using script xfa.host.print(1, "0", "0", 0, 1, 0, 0, 0); does not work. I have not been able to locate anything else that will work.  Any ideas?  Thank you.


My Product Information:
LiveCycle Designer Pro 7 / Windows

Offline

 

#2 2007-10-09 13:06:40

JoelGeraci
Member

Registered: 2007-07-10
Posts: 1

Re: JavaScript printing problem

The second and third parameters, the "from" and the "to", are each a 0 based index. They need to be numbers, not strings.

The script...
xfa.host.print(1, 0, 0, 0, 1, 0, 0, 0);

should work just fine.

Offline

 

#3 2007-10-09 13:12:58

JoelGeraci
Member

Registered: 2007-07-10
Posts: 1

Re: JavaScript printing problem

BTW - Any time you use xfa.host.anything, you should refer to the "JavaScript™ for Acrobat® API Reference"

http://www.adobe.com/devnet/acrobat/pdf … erence.pdf

for more detailed information on what works and what doesn't. The "host" is Acrobat or Reader and it is that JavaScript engine that interprets the call.

J-

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson

AcrobatUsers.com  >>  User Groups • News • Events • Articles • Blogs • How To • Resources • Member Log in