Hi
I have implemented Export to Excel into my application using the code in your sample but I am getting :
SecurityException : Dialogs must be user-initiated
on the following line :
bool
? showDialog = dialog.ShowDialog();
Any ideas how to get arond this?
Thanks
Kevin
Hi Kevin
Could you try with moving dialog.ShowDialog() call to the first line of your OnClick function and set a breakpoint on some line after it, because there is a timeout in which the Dialog window should be shown.
Thanks,George
Don't worry. I have answered my own question. When debugging using Visual Studios own Development Server ( which I was ) you get the exception and when using the local IIS ( which I now am) you do not.