我无法在iis7中打开office
我在 IIS 论坛中创建帖子,但他们无法解决它
我在我的项目中在按钮中使用此代码:
Microsoft.Office.Interop.Word.Application WordApp = new Microsoft.Office.Interop.Word.Application();
var path = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), "New" + ".docx");
object fileName = path;
object readOnly = false;
object startIndex = 0;
object isVisible = true;
object missing = System.Reflection.Missing.Value;
WordApp.Visible = true;
Microsoft.Office.Interop.Word.Document aDoc = WordApp.Documents.Add();
我在 Visual Studio 中单击按钮时打开 Word Office 但当我在 iis7 上发布时,当我单击按钮,不要打开 Word Office
I create post in the IIS Forum but they Can't resolve it
I in my project use of this code in button:
Microsoft.Office.Interop.Word.Application WordApp = new Microsoft.Office.Interop.Word.Application();
var path = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), "New" + ".docx");
object fileName = path;
object readOnly = false;
object startIndex = 0;
object isVisible = true;
object missing = System.Reflection.Missing.Value;
WordApp.Visible = true;
Microsoft.Office.Interop.Word.Document aDoc = WordApp.Documents.Add();
I in visual studio when click on button,to be open word office but when i published on iis7, when i click on button, don't open word office
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
听起来您正在尝试为用户创建一个新文档。
这不可能工作,因为您的代码在服务器上运行。
It sounds like you're trying to create a new document for the user.
That cannot possibly work, since your code runs on the server.