1 Reply Latest reply on Sep 4, 2013 1:51 PM by kjaeggin

    How to Change Paper Type Using Java script


      HI ,


      We have a requirement , in which we have to change the paper type i.e. "A2" , "A3","A4" etc.  while printing using a JavaScript. I have written a code like this :



      = "A2"; But this is not working. please help me out.






        • 1. Re: How to Change Paper Type Using Java script
          kjaeggin Level 2

          That's the right object for choosing the page size at Design time. What event are you doing this on? Although you can change it in the form model, the form's page size is already determined from the template by the time you have a form to script against, so although you can change it via script after the fact in XFA, I don't believe it will have any impact. Even putting it on the layout ready event does not work.