如何在ASP.NET中调用Word宏 [英] How to Call Word Macro in ASP.NET
问题描述
要求:使用参数从ASP.NET调用Word宏
有人对此有所了解吗?请注意import语句和
示例代码,因为我是初学者使用ASP.NET,感谢您的好意
回复!
我假设Word宏位于服务器端的doc文件中?
" Brian Kwan" <豪********* @ gmail.com>在消息中写道
news:11 ********************* @ f14g2000cwb.googlegro ups.com ...要求:使用参数从ASP.NET调用Word宏
有人对此有所了解吗?请注意import语句和示例代码,因为我是初学者使用ASP.NET,感谢您的回复!
< blockquote>" Brian Kwan" <豪********* @ gmail.com>在消息中写道
news:11 ********************* @ f14g2000cwb.googlegro ups.com ...
< blockquote class =post_quotes>要求:使用参数从ASP.NET调用Word宏
有人对此有所了解吗?请注意import语句和示例代码,因为我是初学者使用ASP.NET,感谢您的好意回复!
是,但你必须在网络服务器上安装Word,然后使用COM InterOp实例化
。
这是一个非常糟糕的主意...在你的桌面计算机,打开任务管理器
并选择进程选项卡。现在启动Word并观察它耗尽了多少你机器的资源。现在乘以你可以合理期望连接到你的
网络服务器的
并发用户的数量...
做一个非常大的帮助,并找到一个原生的.NET方式来做你的b $ b Word宏正在做什么...
这是排序要求假设有一个必要的东西,比如一个Word宏来完成一项任务,这可能是以其他一些更有意义的方式实现的。究竟这个Word Macro应该是什么?
呢?
-
HTH,
Kevin Spencer
Microsoft MVP
..Net开发人员
歧义具有一定的品质。
" Brian Kwan" <豪********* @ gmail.com>在消息中写道
news:11 ********************* @ f14g2000cwb.googlegro ups.com ...要求:使用参数从ASP.NET调用Word宏
有人对此有所了解吗?请注意import语句和示例代码,因为我是初学者使用ASP.NET,感谢您的回复!
Requirement: Call a Word Macro from ASP.NET with parameters
Do anyone have idea about this? Please notice the import statement and
sample code, as I am a beginner using ASP.NET, thanks for your kindly
reply!
I assume the Word macro resides in a doc file that is held server side?
"Brian Kwan" <ho*********@gmail.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...Requirement: Call a Word Macro from ASP.NET with parameters
Do anyone have idea about this? Please notice the import statement and
sample code, as I am a beginner using ASP.NET, thanks for your kindly
reply!
"Brian Kwan" <ho*********@gmail.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...
Requirement: Call a Word Macro from ASP.NET with parameters
Do anyone have idea about this? Please notice the import statement and
sample code, as I am a beginner using ASP.NET, thanks for your kindly
reply!
Yes, but you would have to install Word on the webserver, then instantiate
it with COM InterOp.
This is a really bad idea...On your desktop machine, open up Task Manager
and select the Processes tab. Now launch Word and watch how much of your
machine''s resources it uses up. Now multiply that by the number of
concurrent users you can reasonably expect to be connected to your
webserver...
Do yourself a MASSIVE favour and find a native .NET way of doing what your
Word macro is doing...
This is the sort of "requirment" that assumes a necessity for something like
a Word Macro to accomplish a task, which may be accomplished in some other
way that makes a lot more sense. What exactly is this Word Macro supposed to
do?
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
Ambiguity has a certain quality to it.
"Brian Kwan" <ho*********@gmail.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...Requirement: Call a Word Macro from ASP.NET with parameters
Do anyone have idea about this? Please notice the import statement and
sample code, as I am a beginner using ASP.NET, thanks for your kindly
reply!
这篇关于如何在ASP.NET中调用Word宏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!