Printing Tip Handling User Initiated Dialogs Exceptions

Posted on Dot net Slackers See other posts from Dot net Slackers
Published on Mon, 14 Jun 2010 00:00:00 GMT Indexed on 2010/06/14 19:32 UTC
Read the original article Hit count: 166

Filed under:
I see this question every so often so it makes sense to share it through a quick post. When using the print API in Silverlight 4 you can run into the dreaded exception: System.Security.SecurityException: Dialogs must be user-initiated Then you examine your code and confirm that your code where you invoke the PrintDocuments Print method are indeed being handled by a user-initiated event. If you are not invoking Print in a user-initiated event then your know your solution :) Here is some sample...

Did you know that DotNetSlackers also publishes .net articles written by top known .net Authors? We already have over 80 articles in several categories including Silverlight. Take a look: here.



Email this Article

© Dot net Slackers or respective owner