开发者

Open print dialog in Silverlight after callback returns

I have a Silverlight app that gets a unique sequence # back from a WCF call to a db. From there I wanted to pass that into a printing function that opens the print dialog. But the problem is that I get a security exception if I call the open print dialog from the WCF call back (the dialog can only be opened from user click event).

I thought that perhaps a while loop 开发者_开发技巧in the click event but that doesn't seem to help.

Any ideas how to deal with this?


As you stated, "the dialog can only be opened from user click event".

All the dialog security measures are intended to protect against malicous use of Silverlight. You should not be able to circumvent it. Sorry.

Would your design allow you to request the code earlier and then have the user click a button to activate the printing?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜