I have a strange problem. I have created an infopath form with full trust and my own digital signature. I am acessing SQL database and exporting data to Excel on button click. This whole process works perfectly fine if I run it in debug mode. But somehow, when in preview mode, the button event is not firing and the expect SQL execution/excel ...