如何使用VB.net在我的应用程序中显示microsoft office文件 [英] How to show microsoft office files in my application using VB.net

查看:465
本文介绍了如何使用VB.net在我的应用程序中显示microsoft office文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我需要在我的应用程序中显示microsoft office文件,如word,excel和其他文件。我在我们的代码项目中看到了一些解决方案,但它似乎以新的形式显示或以新的ms字开头,但我需要在窗口窗体中打开ms字。我们已经使用DSO成帧器显示文件,但有时无法使用。它应该在我的表格内。我们使用Developer Express版本11.1。任何人都知道解决方案请通知我。在此先感谢....

解决方案

'读取word文件

Dim myWord作为Microsoft.Office .Interop.Word.ApplicationClass
'启动Word并打开文档。
myWord = CreateObject(Word.Application)
myWord.Visible = True
myWord.Documents.Open(C:< 路径 > \ myWordDocument.docx)


Hello everybody,
I need to show the microsoft office files like word,excel and other files in my application. I saw some solutions on our codeproject but it seems like showing in new form or opening in new ms word but i need to open the ms word in my window form. We already using the DSO framer for showing the files but it not working some times. It should be inside of my form. we using Developer express version 11.1. Any one know the solution please inform me. Thanks in advance....

解决方案

'read word file

 Dim myWord As Microsoft.Office.Interop.Word.ApplicationClass
 'Start Word and open the document.
 myWord = CreateObject("Word.Application")
 myWord.Visible = True
 myWord.Documents.Open("C:<path>\myWordDocument.docx")


这篇关于如何使用VB.net在我的应用程序中显示microsoft office文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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