ASP,IIS 6.0,Javascript和Microsoft Word 2013 [英] ASP, IIS 6.0, Javascript and Microsoft Word 2013

查看:81
本文介绍了ASP,IIS 6.0,Javascript和Microsoft Word 2013的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,< o:p>< / o:p>


希望今天有人有一个好主意来帮助我们!< o:p>< / o:p>


我们正在运行一个基于asp的应用程序带有IIS 6.0的Windows服务器,(ODBC = dBASE,xls,mdb)。我们的应用程序首先从数据库
表中收集数据,它打开一个.doc文件(objword.Documents.Open和var objword = new ActiveXobject(" word.application"))并在名为tax.doc的文档中填充数据或tax.docx(行和单元格)。< o:p>< / o:p>


我们使用Javascript代码来实现这一点。它适用于MS Word版本2010但不适用于Word 2013.< u1:p>< / u1:p>< o:p>< / o:p>


奇怪的是,Word 2013打开了tax.doc或tax.docx模板,但没有任何数据已在Word 2010中填充行,单元格。< u1:p>< / u1:p>< o:p>< / o:p>


我的问题:< o:p>< / o:p>


任何人,任何想法为什么?在Word 2013中未包含或已被删除/关闭的内容?< o:p>< / o:p>


 


< u1:p>谢谢你。< / u1:p>< o:p>< / o:p>


Fraidon

解决方案

Hello Fraidon,


>
我们在带有IIS 6.0的Windows服务器上运行基于asp的应用程序


Microsoft没有目前建议并且不支持从任何无人参与的非交互式客户端应用程序或组件(包括ASP,ASP.NET,DCOM和NT服务)自动化Microsoft Office应用程序,因为Office
可能表现出不稳定的行为, /或在此环境中运行Office时出现死锁。




如果您正在构建解决方案在服务器端上下文中运行,您应该尝试使用已经安全无人值守的组件。或者,您应该尝试找到允许至少部分代码在客户端运行的替代方法。
如果您从服务器端解决方案使用Office应用程序,则应用程序将缺少许多必要的功能才能成功运行。此外,您将承担整体解决方案稳定性的风险。在
中了解更多相关信息
服务器端Office自动化的注意事项
文章。


作为一种解决方法,您可以考虑使用专为服务器端执行而设计的第三方组件。您也可以考虑使用Open XML SDK来处理开放XML文档。请参阅

Welcome有关详细信息,请参阅Open XML SDK 2.5 for Office


Hello everyone,<o:p></o:p>

hope someone has some nice idea to help us today!<o:p></o:p>

We are running an asp based application on a windows server with IIS 6.0,  (ODBC = dBASE, xls, mdb). our application first collect data from database tables, it open an .doc file (objword.Documents.Open and var objword = new ActiveXobject ("word.application") and populate data in the document called tax.doc or tax.docx (Rows and Cells).<o:p></o:p>

We use Javascript code to accomplish that. It works fine with the MS Word version 2010 but not in Word 2013.<u1:p></u1:p><o:p></o:p>

strange enough, that the Word 2013 open out tax.doc or tax.docx template well, but without any data been populate in the Rows, Cells as it does in Word 2010.<u1:p></u1:p><o:p></o:p>

my question:<o:p></o:p>

Anyone, any idea why? And what is not included or has been removed/turned off  in Word 2013?<o:p></o:p>

 

<u1:p>thank you in adv.</u1:p><o:p></o:p>

Fraidon

解决方案

Hello Fraidon,

> We are running an asp based application on a windows server with IIS 6.0

Microsoft does not currently recommend, and does not support, Automation of Microsoft Office applications from any unattended, non-interactive client application or component (including ASP, ASP.NET, DCOM, and NT Services), because Office may exhibit unstable behavior and/or deadlock when Office is run in this environment.

If you are building a solution that runs in a server-side context, you should try to use components that have been made safe for unattended execution. Or, you should try to find alternatives that allow at least part of the code to run client-side. If you use an Office application from a server-side solution, the application will lack many of the necessary capabilities to run successfully. Additionally, you will be taking risks with the stability of your overall solution. Read more about that in the Considerations for server-side Automation of Office article.

As a workaround you may consider using third-party components designed for the server-side execution. Also you may consider using Open XML SDK for processing open XML documents only. See Welcome to the Open XML SDK 2.5 for Office for more information.


这篇关于ASP,IIS 6.0,Javascript和Microsoft Word 2013的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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