Thank you so much it is working now!. I have couple of things I need some help with:
Now I can export the document, can I export certain parts of the document? And can I email the PDF after I export it using the same button ?
One more thing, when I email the form and receive it, I won't be able to open the form (InfoPath can not grant access to these files ....template is not fully trusted. To be trusted, form should be installed or signed)
Any tips?