Open individual documents on Pocket PC

来源:互联网 发布:淘宝怎么延长发货时间 编辑:程序博客网 时间:2024/05/03 17:33

The built in applications in Pocket PC follow a familiar model with a DocumentList screen listing files of that type, and then an "editor" screen for working with an individual document. If you launch a specific document programmatically it will open direct to that document, but when you close the app will continue to run returning to the document list. You can add the "-opendoc" argument to launch the application for that specific document and close completely once you've finished working with it. This allows you to more seamlessly use these applications from your own code and determine when they have completed. Using the Process class you would do:-

Process p = Process.Start("pword.exe","-opendoc /"//My Documents//mypocketwordfile.pwd/");

This argument is supported by Notes, Pocket Word, Pocket Excel and Pocket Streets

原创粉丝点击