Hi Jorge,
You are on version 8 or higher correct? If so, the sample script should work.
One thing you need to be sure to do is setup drop down lists orientationList and paperSizeList. You can see in the script it relies on these drop down lists for paper size and orientation of your PDF export. If you don’t want to display the lists on your dashboard you can set the default that you want and hide the lists.
If you download the sample project and import it, it may be easier to see what is going on in the script.
Hola Jorge,
Yo se que tu hablas espanol, voy a tratar a expliquar en espanol (disculpame mi espanol es mal)
ustedes en Dundas 8 or mas no?
Para que funcione necesita dos listas, uno para el tamaño del papel (paperSizeList) y otro para la orientación del papel (orientationList). Puedes ocultar las listas si no quieres verlos.
Espero que esto ayude