Slow Silverlight Printing

Source: Internet
Author: User

Original article address:

Http://www.cnblogs.com/rocket2012/archive/2012/12/01/2797455.html

 

I have been using Silverlight for two years. I have always been a layman. The problem of slow Silverlight printing has been raised since last year. At that time, silverlight4 was used, so we hope that vector printing of silverlight5 can solve this problem. Silverlight5 came out this year, but vector printing is a pitfall, so the problem of slow printing is still bothering us.

At the end of this year, all localities are using our e-government for rural collective ownership registration. Tens of thousands of applications, approval forms, and land certificates should be printed. The problem of slow printing is becoming increasingly prominent. Dy, Development Manager, wants to print data using a Chinese table. An interesting thing happened in the past two days. WBJ, the Project Manager, showed the Development Manager A foreign Silverlight report tool demo. The development manager asked me to check it out, saying that the project manager printed Silverlight in a few seconds. I think it's incredible. At the request of the Development Manager, I took half a day yesterday morning to check whether our form printing can be improved. I think that since the reports generated by others using Silverlight are printed so quickly, I also use DataGrid to make a report to see if the results are so fast. Then I thought, how fast is the DataGrid printing? What about other controls? So I used our form tool to make a simple text-only form, test and print, and the results were fast. So I thought, isn't the printing of other controls in our form slow? I tested the four pages of the approval table separately, and found that the first three pages were fast, but the last page was slow, after the analysis, we thought that the last page was slow because of the seal control. The special feature of the seal control is that the image control is used in the control. As you may think, Form Printing in our system is slow, probably because of the image control of table items. As a result, I continued to explore and found a very bad feature of the image control, that is, if the source of the image is empty, the printing speed will be very slow, but if it is not empty, it will be very fast. Then I think, if we set a default value for the source of the image control in the form of our system, the printing speed should be very fast. I spoke to the development manager about this. In the afternoon, we modified the form according to my conjecture. The result was gratifying. Printing was much faster. It would have taken a minute, it takes only a few seconds. I saw the Development Manager smile, haha. Finally, the problem that has plagued us for a long time has been solved, and the project can be accepted.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.