Silverlight Instance Tutorial

Source: Internet
Author: User
Tags comments comparison silverlight

Before the beginning of this article, first of all to thank everyone who left feedback comments, in my opinion, blog is not just a simple sharing, but also a learning and discovery process. After reading an article can have comments and questions, but also a reflection of the performance.

In the previous "Silverlight instance tutorial-out of browser and COM interaction Basics", we discussed Silverlight's OOB application access COM component basics, and in our feedback, many friends questioned Silverlight's support for COM makes it lose cross-platform superiority, and is there still a major limitation in Silverlight's only out of browser mode to support COM? In this article we do not conduct lengthy analysis and discussion, but simply put my views on the point.

Silverlight out of browser from Silverlight 3 to now Silverlight 4, has been guided by Cross-platform principles in Microsoft's official explanation,

Linux,moonlight from the first release, there is already an advanced permissions model, in Gtkwidget Moonlight has the ability to full-trust. That is, Silverlight has a trust elevation and Mono has a full-trust mode.

Mac, because Mac doesn't have a COM concept, silverlight com can't run on a Mac, but Microsoft officials are also looking for a way to use a simulation to run COM on a Mac, for example, running AppleScript

As you can see in the script above, how does Mac use AppleScript to invoke Office Word, which is actually a Mac call to COM, in later versions of Silverlight, If you add support for applescripts, you can support COM on your Mac.

From the above description, the OOB application of Silverlight is cross-platform, not unresolved, but a matter of time. As a technical person, often on the prospect of a technology, and need to pay attention to, as far as possible not to use its shortcomings and other technical advantages of comparison, such comparison results, will only interfere with their own line of sight and thinking. A technology that earns money is already a good technology.

Out of browser interoperability with Office

Again, this article will continue to describe the interaction of the out of browser application of Silverlight with the Office COM component. I believe you are not unfamiliar with Microsoft's Office series, Office in the enterprise Project frequency is high, for example, in day-to-day projects and encounter export list to Excel, or send mail and other functional requirements, so Microsoft has many of its functions packaged into COM components for developers to use, enhance The flexibility of its application. In this article, I will demonstrate how to use the Office Outlook,word,excel component in the OOB application of Silverlight.

We still use the project code in the previous article to expand it, you can download the demo project code in the previous article.

Before starting the functional code, you first need to add three button in the UI interface toolbar to respond to its events.

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.