Silverlight PrintDocument Timeout Issues

大城市里の小女人 提交于 2020-01-25 23:23:49

问题


I'm having a problem trying to print from Silverlight. The issue is that I'm printing out several pages of images but the source I have to pull them back from is not incredibly fast and it sometimes takes longer to create the page than the 8 tries that PrintPage makes before failing.

Is there a way to make it try more than 8 times extend the amount of time between tries?


回答1:


No. You can prepare all the necessary data and caching them on the client side before printing.

Also, you can block the thread in the PrintPage event while you wait for the next image to prepare (Not a good idea ...).



来源:https://stackoverflow.com/questions/14902057/silverlight-printdocument-timeout-issues

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!