如何在WP7中导出到Word? [英] How to Export to Word in WP7?

查看:69
本文介绍了如何在WP7中导出到Word?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,
如何在WP7和C#中的按钮单击事件上导出到Word?

Dear All,
How can I Export to Word on a button click event in WP7 and 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.


这篇关于如何在WP7中导出到Word?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆