简体   繁体   English

我不能在iis7开办公室

[英]i can't open office in iis7

I create post in the IIS Forum but they Can't resolve it 我在IIS论坛中创建帖子,但他们无法解决它

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 我在视觉工作室点击按钮时,打开文字办公室但是当我在iis7上发布时,当我点击按钮时,不要打开文字办公室

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 . 这不可行,因为您的代码在服务器上运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM