How to: Read and Write to Files in Isolated Storage.
In Silverlight 2, you had to use the Isolated Storage to save a file locally on the user’s machine. The SaveFileDialog is a new dialog control in Silverlight 3 which allows the user to specify a file name and location to save a file. This control can be invoked only through a user interaction. Let us a see a simple demonstration of using the.
Many business applications need the ability to open and save files from and to the user’s local computers. With internet based applications the issues surrounding this are based on security and the rights the application receives to affect the user’s computer. Silverlight has the open and save file dialogs which enable the opening and saving of files to the user’s computer, while.
Powerful Silverlight Word component which can read, write and modify Microsoft Word document with Silverlight applications.
The most common of which is an XML file or a XML-based file such as those from various RSS feeds. There are two major topics when it comes to using XML in Silverlight. One topic is how to load data from a separate XML file. Another topic is how to actually read the contents of our XML file using LINQ. This tutorial will primarily focus on the.
Spire.Doc for Silverlight is an MS Word component which enables user to perform a wide range of Word document processing tasks, including generate, read, write and modify Word document for Silverlight without Microsoft Office Word Automation. Spire.Doc for Silverlight(with high quality and affordable price) supports Word 97, Word 2003, Word 2007 and Word 2010.
The third file access mechanism is Isolated Storage mechanism, which provides storage associated with the logged in user. The API presents data through the Stream class from .NET System.IO namespace. Therefore, as with the other mechanisms we have looked at so far, you can use the other types in System.IO to work with the streams, enabling you to store either textual or binary data.
For obvious security reasons, Silverlight does not allow direct access to files on the client’s machine. However, in combination with the OpenFileDialog class, you can get read access in the form of a FileStream object. Users do have to specifically grant access to files, and the only data the Silverlight application receives is the data from the files, not any meta information.