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

    How to Change Paper Type Using Java script

    Bhaskar417 Level 1

      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 :

       

      xfa.form.form1.pageSet.Page1.medium.stock

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

       

      printev.jpg

       

      Thanks,

      Bhaskar.

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

          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.