Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Dear All,
How can I Export to Word on a button click event in WP7 and C#?
Posted

1 solution

C#
using (IsolatedStorageFile myIsolatedStorage = IsolatedStorageFile.GetUserStoreForApplication())
                {
                    IsolatedStorageFile ISF = IsolatedStorageFile.GetUserStoreForApplication();
                    //create new file
                    using (StreamWriter SW = new StreamWriter(new IsolatedStorageFileStream("Sample.doc", FileMode.Create, FileAccess.Write, ISF)))
                    {
                        string text = "Hi this is the text which will be written to the file and we can retrieve that later";
                        SW.WriteLine(text);
                        SW.Close();
                        MessageBox.Show("Your Text Has Been Saved Successfully To The File");
                    }
}

The Only thing which an this does is, it stores only the text format and not the images.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900