I created a script to display a PDF file and doesn't work.

I created a dashboard with a bottom to export my dashboard to PDF and I used this link as reference but doesn’t display the PDF:
Create a PDF export | Export | Script Library | Developer (dundas.com)

Do I need to considerer anything else to see the PDF like the sample?
Thank you in advance for your help.
Jorge

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

1 Like

Muchas gracias Derek! Now the PDF works very well.
I really appreciate your translation to Spanish…
Feliz Navidad!!

2 Likes

A ti tambien Jorge, Saludos!